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

Rule:  Naming18Checked automatically with code checker

Synopsis:Avoid naming non-fields with a member-like prefix
Language:Java
Severity Level:7
Category:Naming


Description:
Detects when a non-field has a name starting with 'm_' or 'mX', where 'X' is any uppercase character. This usually indicates a field and thus is confusing.
public class Foo {
    private int m_foo; // OK
    public void bar(String m_baz) {  // Bad
      int mBar = 42; // Bad
    }
  }