IDEA-115612 Insert pair brace before dot in Java

This commit is contained in:
Dmitry Batrak
2016-02-02 13:39:26 +03:00
parent fa2a27b651
commit 83b4e7e39b
5 changed files with 26 additions and 5 deletions
@@ -0,0 +1,5 @@
class A {
void m() {
new Runnable() {<caret>}.run();
}
}
@@ -0,0 +1,5 @@
class A {
void m() {
new Runnable() <caret>.run();
}
}
@@ -1,5 +1,5 @@
/*
* Copyright 2000-2014 JetBrains s.r.o.
* Copyright 2000-2016 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -94,6 +94,10 @@ public class JavaTypingTest extends LightPlatformCodeInsightFixtureTestCase {
doTest('(');
}
public void testInsertPairedBraceBeforeDot() {
doTest('{');
}
private void doTest(char c) {
myFixture.configureByFile(getTestName(true) + "_before.java");
myFixture.type(c);