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

Category: Controversial

Synopsis:The Controversial Ruleset contains rules that, for whatever reason, are considered controversial.


Description:
The Controversial Ruleset contains rules that, for whatever reason, are considered controversial.

Coding Rules

NameCheckedSynopsis
Controversial1 Checked automatically with code checker Avoid unnecessary constructors - the compiler will generate these for you
Controversial2 Checked automatically with code checker Assigning an Object to null is a code smell. Consider refactoring
Controversial3 Checked automatically with code checker A method should have only one exit point, and that should be the last statement in the method
Controversial4 Checked automatically with code checker Avoid modifiers which are implied by the context
Controversial5 Checked automatically with code checker Avoid assignments in operands
Controversial6 Checked automatically with code checker Each class should declare at least one constructor
Controversial7 Checked automatically with code checker Avoid importing anything from the 'sun.*' packages
Controversial8 Checked automatically with code checker Suspicious decimal characters following octal escape in string literal
Controversial9 Checked automatically with code checker It is a good practice to call super() in a constructor
Controversial10 Checked automatically with code checker This statement may have some unnecessary parentheses
Controversial11 Checked automatically with code checker If a field is only used by one method, consider making it a local variable
Controversial12 Checked automatically with code checker Use explicit scoping instead of the default package private level
Controversial12 Checked automatically with code checker Use explicit scoping instead of the default package private level
Controversial13 Checked automatically with code checker Use bitwise inversion to invert boolean values
Controversial14 Checked automatically with code checker Make sure variable assignment has been performed correctly