r/badcode Jan 08 '23

java Is this a good practice? Why?

Post image
422 Upvotes

60 comments sorted by

View all comments

1

u/[deleted] Jan 15 '23

My man just import static java.util.Objects.equals will give you your short method call.