mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 00:11:26 +07:00
IDEA-67294 unexpected reformat result for package-private annotation
No indent is defined for annotations now
This commit is contained in:
+12
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user