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

This commit is contained in:
Max 2014-07-22 01:08:42 +04:00 committed by Roman Ivanov
parent 244d240507
commit f80a6c9d89
2 changed files with 18 additions and 0 deletions

View File

@ -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);
}
}

View File

@ -21,3 +21,11 @@ public class InputWhitespaceAround
}
}
}
@interface CronExpression {
Class<?>[] groups() default {};
}
@interface CronExpression {
Class<?>[] groups() default { }; // extra space
}