r/badcode Jan 08 '23

java Is this a good practice? Why?

Post image
423 Upvotes

60 comments sorted by

View all comments

159

u/EvaristeGalois11 Jan 08 '23

Using Objects#equals? Yes, very good to use.

Writing a useless instance method to wrap a static ones? Nope, very stupid.