Synopsis: | The method name and return type are suspiciously close to hashCode() |
Language: | Java |
Severity Level: | 3 |
Category: | Naming |
Description: |
The method name and return type are suspiciously close to hashCode(), which
may mean you are intending to override the hashCode() method.public class Foo { public int hashcode() { // oops, this probably was supposed to be hashCode } } |