WhitespaceAround with allowEmptyMethods complains on annotation's empty method #21
This commit is contained in:
parent
244d240507
commit
f80a6c9d89
|
|
@ -207,4 +207,14 @@ public class WhitespaceAroundTest
|
|||
getPath("whitespace/InputDoWhileWhitespaceAround.java"),
|
||||
expected);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void allowEmptyMethods() throws Exception
|
||||
{
|
||||
checkConfig.addAttribute("allowEmptyMethods", "true");
|
||||
final String[] expected = {};
|
||||
verify(checkConfig,
|
||||
getPath("whitespace/InputWhitespaceAround.java"),
|
||||
expected);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -21,3 +21,11 @@ public class InputWhitespaceAround
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
@interface CronExpression {
|
||||
Class<?>[] groups() default {};
|
||||
}
|
||||
|
||||
@interface CronExpression {
|
||||
Class<?>[] groups() default { }; // extra space
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue