TICS Coding Standard Viewer 
TIOBE Software Quality Framework
Print-friendly version
©TIOBE Software www.tiobe.com
 
TIOBE - Java Coding Standard
Search

Rule:  Naming10Checked automatically with code checker

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
 }
}