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

Rule:  Naming13Checked automatically with code checker

Synopsis:It is somewhat confusing to have a field name matching the declaring class name
Language:Java
Severity Level:5
Category:Naming


Description:
It is somewhat confusing to have a field name matching the declaring class name. This probably means that type and or field names could be more precise.
public class Foo extends Bar {
 // There's probably a better name for foo
 int foo;
}