JNode Java style rules

All new code that is created as part of the JNode project should conform to the style set out in Sun's "Java Style Guidelines" with variations and exceptions listed below.
Note that we use CheckStyle 4.4 as our arbiter for style correctness. Run "./build.sh checkstyle" to check your code style before checking it in or submitting it as a patch.

No TAB characters.
No TAB characters (HT or VT) are allowed in JNode Java source code.
Whitespace TABs should be replaced with the requisite number of spaces or newlines. Non-whitespace TABs (i.e. in Java strings) should be replaced with "\t" or "\f" escape sequences.
Use 4 space indentation.
Two or three characters is too little, eight is too much.
Maximum line width 120.
The JSG recommends 80 characters, but most people use tools that can cope with much wider.
Put following keywords on same line as }
For example:

    try {
        if (condition) {
            something();
        } else {
            somethingElse();
        }
    } catch (Exception ex) {
        return 42;
    }

Note that the else is on the same line as the preceding }, as is the catch.

Indent labels by -4.
For example:

public void loopy() {
    int i;
LOOP:
    for (i = 100; i < 1000000; i++) {
        if (isPrime(i) && isPrime(i + 3) && isPrime(i + 5) {
            break LOOP;
        }
    }
}
No empty { } blocks
A { } block with no code should contain a comment to say why the block is empty. For example,

    try {
        myStream.close();
    } catch (IOException ex) {
        // we can safely ignore this
    }