Last night I dreamt I found a class with equals—but not hashCode—overridden. Now I'm paranoid that code is real and in production somewhere.
-
-
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
- End of conversation
New conversation -
-
Scalastyle have a rule for this!
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
It would be better if java.lang.Object (or Any for that matter) defines hashCode = 1
- Show replies
New conversation -
-
you might have missed some occurrences of `override val hashCode = 0`
-
Yep! There were 7 (all in Scalac and associated libraries, incidentally).
- Show replies
New conversation -
-
-
I wish I had not looked at that right before I go to bed.
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
