mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
remove line breaks between block and Rparen: IDEA-67968
This commit is contained in:
@@ -987,7 +987,7 @@ public class JavaSpacePropertyProcessor extends JavaElementVisitor {
|
||||
return Spacing.createDependentLFSpacing(spaces, spaces, dependantRange, false, mySettings.KEEP_BLANK_LINES_IN_CODE);
|
||||
}
|
||||
else {
|
||||
return Spacing.createSpacing(spaces, spaces, 0, false, mySettings.KEEP_BLANK_LINES_IN_CODE);
|
||||
return Spacing.createSpacing(spaces, spaces, 0, false, 0);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
|
||||
public class Foo {
|
||||
public void foo() {
|
||||
while (true)
|
||||
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
public class Foo {
|
||||
public void foo() {
|
||||
while (true) {
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -538,4 +538,13 @@ public class WrapperTest extends JavaFormatterTestCase {
|
||||
"}");
|
||||
|
||||
}
|
||||
|
||||
|
||||
public void testWrappingBeforeNewLinedBlock() throws Exception {
|
||||
// Inspired by IDEA-67968
|
||||
|
||||
defaultCodeStyle();
|
||||
|
||||
doTest("NewLineBlock", "NewLineBlock_after");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user