|
http://www.jindent.com |
Previous: Ternary Conditions
|
Next: Comments
|
| Comments separate alignment chunks |

|
public class myClass { float a, b, c; // field declaration int d, e; // field declaration public void main() { String g; // variable eclaration System.out.println("Hello World !"); // method call myFunction(); // method call d = bla(); // assingment b = c + 1; // assingment e = (a < 10); // assingment ... } } |
|
int a, b, c, d; // trailing comment int e, f, g, h, i, j; // trailing comment /* String declarations */ String k, l, m, n, o, p, q; // trailing comment String r, s, t, u, v, w; // trailing comment |
/* String declarations */ subdivides the variable declarations chunk into two subchunks.
As a result the trailing comments of first and second chunk are aligned different.|
int a, b, c, d; // trailing comment int e, f, g, h, i, j; // trailing comment /* String declarations */ String k, l, m, n, o, p, q; // trailing comment String r, s, t, u, v, w; // trailing comment |
|
See also: | Exceeding lines separate alignment chunks |
| Exceeding lines separate alignment chunks |

|
String abc = new String("abc"); | String defghi = new String("defghi"); | ALongClassName andALongFieldName = | new ALongClassName("12345","6789"); | long var = 1214159583925L; | String jklmnopq = "jklmnopq"; | |
andALongFieldName subdivides the variable declarations chunk into two subchunks.
As a result the assignment of first and second chunk are aligned different.|
String abc = new String("abc"); String defghi = new String("defghi"); ALongClassName andALongFieldName = new ALongClassName("12345","6789"); long var = 1214159583925L; String jklmnopq = "jklmnopq"; |
|
See also: | Comments separate alignment chunks |