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

Rule:  Naming15Checked automatically with code checker

Synopsis:Don't define methods with the same name as the class name
Language:Java
Severity Level:3
Category:Naming


Description:
It is very easy to confuse methods with class name with constructors. It is preferrable to name these non-constructor methods in a different way.
public class Foo {
 public void Foo() {
  // not a constructor, just a poorly named method
 }
}