#506 Left Curly Braces Check and annotations

release_4.4
closed
nobody
5
2012-10-10
2008-03-17
Oliver Grass
No

I'm using Checkstyle 4.40 within Eclipse 3.3.
We still have the problem, where the Left Curly Braces check with nlow doesn't work.

Example:

/*
* @deprecated No longer used
/
@Deprecated
public String getMessage() {
return message;
}

Checkstyle complains about "Left Curly Brace Placement: '{' should be in a new line".

Since the rule is "next line on wrap (nlow)", this error is definitively wrong.

This is really annoying, since we have big projects.

Happens only when annotations are used.

Cheers
Oliver

Discussion

  • Oliver Burn
    Oliver Burn
    2009-04-15

    fixed in release 5