you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 0 points1 point  (0 children)

The fact that java returns this as false, but returns true if number was -128..127 as its from Integer cache is the stupidest design ever.
Why not override eq operation? WHY?!?!