remove line breaks between block and Rparen: IDEA-67968

This commit is contained in:
Roman.Ivanov
2018-06-05 10:32:18 +07:00
parent 24ea59639e
commit f6561da65c
4 changed files with 27 additions and 1 deletions
@@ -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");
}
}