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

Rule:  Style101Checked automatically with code checker

Synopsis:Indent properly.
Language:Java
Severity Level:8
Category:Style


Description:

We use 4 space indents for blocks. We use 8 space indents for line wraps, including function calls and assignments. For example, this is correct:

Instrument i =
             someLongExpression(that, wouldNotFit, on, one, line);

and this is not correct:

Instrument i =
    someLongExpression(that, wouldNotFit, on, one, line);



Literature References:
Google Android Guidelines