Auto-indent should trim unnecessary whitespace on
a) blank lines (i.e., they should not be indented to
the same level as surrounding line)
b) and at the end of lines.
It should also add a blank line at the end of the file.
An example:
public class Foo {
public Foo() {
//Implementation here.
//There should be no whitespace
//after the final character of this
//line (with the exception of the
//newline, of course).
}
//There should be NO whitespace on
//the line above.
public void method() {
//...
}
}
EOF