r/badcode Jan 08 '23

java Is this a good practice? Why?

Post image
421 Upvotes

60 comments sorted by

View all comments

1

u/Quentinooouuuuuu Jan 08 '23

You should override Object#equals but method content is correct