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

Category: TypeResolution

Synopsis:These are rules which use Java type resolution to simplify code


Description:
These are rules which use Java type resolution to simplify code.

Coding Rules

NameCheckedSynopsis
TypeResolution1 Checked automatically with code checker Avoid using implementation types; use the interface instead
TypeResolution2 Checked automatically with code checker clone() method should be implemented only if implementing Cloneable interface
TypeResolution3 Checked automatically with code checker Use the diamond operator to let the type be inferred automatically
TypeResolution4 Use short array initializers without repeated type information