Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
WhitespaceAround, false positive for right curly brace in Annotation #14
In my opinion there should be no error in this case, as it is in an annotation (javax.ejb.Local specifically)
It might be "religious" question how to format Annotation declarations, Sun/Oracle and others do that in bit different way, But I think it is reasonable to reconcile that in Checkstyle by option "skipAnnotationBraces" or smth similar
case from Created: 2009-10-07 Creator: Mark Hobson :
With: "'}' is not preceded with whitespace."
Whereas the same formatting used with array initialisation passes:
this feature is present in Google Code Style
Is it acceptable to enhance the check to skip RCURLY and LCURLY for
If this is an acceptable solution, I have made the changes locally with tests. I can submit a pull request.