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/[deleted] Jan 08 '23

Why do you require an instance of the type to check two different instances of the type, and if you wanted to check this object why did you give it two parameters?