mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
don't force braces when completing in if condition
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
public class Foo {
|
||||
void foo(boolean flag) {
|
||||
if ('\\' == File.separach<caret>)
|
||||
System.out.println();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
import java.io.File;
|
||||
|
||||
public class Foo {
|
||||
void foo(boolean flag) {
|
||||
if ('\\' == File.separatorChar<caret>)
|
||||
System.out.println();
|
||||
}
|
||||
}
|
||||
+5
@@ -406,6 +406,11 @@ public class NormalCompletionTest extends LightFixtureCompletionTestCase {
|
||||
doTest();
|
||||
}
|
||||
|
||||
public void testNoForceBraces() {
|
||||
codeStyleSettings.IF_BRACE_FORCE = CommonCodeStyleSettings.FORCE_BRACES_ALWAYS
|
||||
doTest()
|
||||
}
|
||||
|
||||
public void testExcludeStringBuffer() throws Throwable {
|
||||
CodeInsightSettings.getInstance().EXCLUDED_PACKAGES = [StringBuffer.name] as String[]
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user