Check "de.unkrig: Whitespace around"

Verifies that a token is surrounded by whitespace.

This check is superseded by de.unkrig.Whitespace.

Empty constructor bodies, method bodies, catch blocks and type bodies of the form

public MyClass() {}           // empty constructor body

public void func() {}         // empty method body

public void func() {
    new Object() {
        // ...
    }.hashCode();             // No space between "}" and "." -- always allowed
    try {
        // ...
    } catch {}                // empty catch block
}

interface MyInterface {}      // emtpy type body

may optionally be exempted from the policy using the allowEmptyMethods, allowEmptyConstructors, allowEmptyCatches and allowEmptyTypes properties.