Created
June 14, 2019 06:05
-
-
Save rohitvvv/cdd99ecbac028db4db2976a8d83ca9f9 to your computer and use it in GitHub Desktop.
BadHashCode
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Very bad hashCode. Never do this. | |
@Override | |
public int hashCode() { | |
return 1; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment