mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
IDEA-64725 Race Condition when editing field annotations results in incorrect line wrapping
1. Corrected annotation wrap calculation in case of incomplete fields; 2. Corresponding test is added;
This commit is contained in:
@@ -256,4 +256,14 @@ public class JavaFormatterWrapTest extends AbstractJavaFormatterTest {
|
||||
"int j = 2;"
|
||||
);
|
||||
}
|
||||
|
||||
public void testIncompleteFieldAndAnnotationWrap() throws Exception {
|
||||
// Inspired by IDEA-64725
|
||||
|
||||
getSettings().FIELD_ANNOTATION_WRAP = CommonCodeStyleSettings.DO_NOT_WRAP;
|
||||
doClassTest(
|
||||
"@NotNull Comparable<String>",
|
||||
"@NotNull Comparable<String>"
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user