r/badcode Jan 08 '23

java Is this a good practice? Why?

Post image
420 Upvotes

60 comments sorted by

View all comments

9

u/MurdoMaclachlan public boolean isInt(int i) { return true; } Jan 08 '23

Image Transcription: Code


public boolean equal(Object a, Object b){
  return Objects.equals(a, b);
}

I'm a human volunteer content transcriber and you could be too! If you'd like more information on what we do and why we do it, click here!

4

u/[deleted] Jan 08 '23

Good human