mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
[formatter] keep final on the same line with annotation
This commit is contained in:
@@ -652,4 +652,13 @@ public class JavaFormatterSpaceTest extends AbstractJavaFormatterTest {
|
||||
"int x = (1 + 2 + 3) * (1 + 2 + 2) * (1 + 2);"
|
||||
);
|
||||
}
|
||||
|
||||
public void testKeepFinalOnLine() {
|
||||
doClassTest(
|
||||
"public static void bar(@NonNls final String[] args) {\n" +
|
||||
"}",
|
||||
"public static void bar(@NonNls final String[] args) {\n" +
|
||||
"}");
|
||||
}
|
||||
|
||||
}
|
||||
@@ -3283,8 +3283,7 @@ public void testSCR260() throws Exception {
|
||||
" list.clear();\n" +
|
||||
" }\n" +
|
||||
"};",
|
||||
"@SuppressWarnings(\"unchecked\")\n" +
|
||||
"final List<String> list = new ArrayList<String>();\n" +
|
||||
"@SuppressWarnings(\"unchecked\") final List<String> list = new ArrayList<String>();\n" +
|
||||
"new Runnable() {\n" +
|
||||
" @Override\n" +
|
||||
" public void run() {\n" +
|
||||
|
||||
Reference in New Issue
Block a user