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

Category: Optimization

Synopsis:These rules deal with different optimizations that generally apply to performance best practices.


Description:
These rules deal with different optimizations that generally apply to performance best practices.

Coding Rules

NameCheckedSynopsis
Optimization1 Checked automatically with code checker Local variables assigned only once can be declared final
Optimization2 Checked automatically with code checker A method argument that is never assigned can be declared final
Optimization3 Checked automatically with code checker Avoid instantiating new objects inside loops
Optimization4 Checked automatically with code checker Use ArrayList instead of Vector
Optimization5 Checked automatically with code checker This call to String.startsWith can be rewritten using String.charAt(0)
Optimization6 Checked automatically with code checker Prefer StringBuffer over += for concatenating strings
Optimization7 Checked automatically with code checker Use asList instead of tight loops
Optimization8 Checked automatically with code checker System.arrayCopy is more efficient
Optimization9 Checked automatically with code checker Unnecessary wrapper object creation
Optimization10 Checked automatically with code checker Avoid using FileStream
Optimization11 Checked automatically with code checker Avoid double brace initialization
Optimization100 Checked automatically with code checker Declare JAXBcontext variables as static.