#286 IndentationCheck breaks with various Java 5.0 additions

release_4.0
closed
5
2012-10-10
2005-01-25
Vincent Jorrand
No

IndentationCheck results in a NullPointerException with
some new Java 5.0 features. I noticed the problem in
the following cases.

For:each loop:

public class CSError {
final void f() {
String[] sa = {"a", "b"};
for (String s : sa) {
}
}
}

and annotation with a parameter:

@MYAnnotation(name = "Test5")
public class Test5 {
}

Discussion

  • Logged In: YES
    user_id=746148

    Fix committed in CVS for 4.0