WhitespaceAround with allowEmptyMethods complains on annotation's empty method #21

Closed
romani opened this Issue Oct 17, 2013 · 0 comments

1 participant

@romani
Member
romani commented Oct 17, 2013

Created: 2013-01-18
Creator: Matteo Corti
SF: #sf694

Check: http://checkstyle.sourceforge.net/config_whitespace.html#WhitespaceAround
allowEmptyMethods=true

Code:

public @interface CronExpression 
{
Class< ? >[] groups() default {}; // WARNING IS HERE
}

Check is satisfied with following code, but it is a bug

public @interface CronExpression 
{
Class< ? >[] groups() default { }; // extra space 
}
@romani romani closed this Jul 22, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment