IDEA-67294 unexpected reformat result for package-private annotation

No indent is defined for annotations now
This commit is contained in:
Denis Zhdanov
2011-03-31 12:40:16 +04:00
parent 6e6b6d5257
commit 3e27c48fa2
2 changed files with 13 additions and 1 deletions
@@ -332,4 +332,16 @@ public class JavaFormatterIndentationTest extends AbstractJavaFormatterTest {
"); "
);
}
public void testPackagePrivateAnnotation() {
// Inspired by IDEA-67294
String text =
"@Retention(RUNTIME)\n" +
"@Target({FIELD, PARAMETER, METHOD})\n" +
"@interface MyAnnotation {\n" +
"\n" +
"}";
doTextTest(text, text);
}
}