http://www.jindent.com |
|
Next: Comments |
Comments separate alignment chunks |
class myClass { float a, b, c; // field declaration int d, e; // field declaration 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 */ char * k, l, m, n, o, p, q; // trailing comment char * 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 */ char * k, l, m, n, o, p, q; // trailing comment char * r, s, t, u, v, w; // trailing comment |
See also: | Exceeding lines separate alignment chunks |
Exceeding lines separate alignment chunks |
char * abc = "abc"; | char * defghi = "defghi"; | ALongClassName andALongFieldName = | new ALongClassName("12345","6789"); | long var = 1214159583925L; | char * jklmnopq = "jklmnopq"; | |
andALongFieldName
subdivides the variable declarations chunk into two subchunks.
As a result the assignment of first and second chunk are aligned different.
char * abc = "abc"; char * defghi = "defghi"; ALongClassName andALongFieldName = new ALongClassName("12345","6789"); long var = 1214159583925L; char * jklmnopq = "jklmnopq"; |
See also: | Comments separate alignment chunks |