Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a951bfa

Browse files
authored
Merge pull request JetBrains#105 from JohnHake/master
IJSDK-348: Changes so conditional_operator_intention YourTest passes
2 parents c2b1c26 + 017ccdb commit a951bfa

File tree

3 files changed

+13
-13
lines changed

3 files changed

+13
-13
lines changed
Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
public class X {
2-
void f(boolean isMale) {
3-
String title;
4-
if (isMale) {
5-
title = "Mr.";
6-
} else {
7-
title = "Ms.";
2+
void f(boolean isMale) {
3+
String title;
4+
if (isMale) {
5+
title = "Mr.";
6+
} else {
7+
title = "Ms.";
8+
}
9+
System.out.println("title = " + title);
810
}
9-
System.out.println("title = " + title);
10-
}
1111
}
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
public class X {
2-
void f(boolean isMale) {
3-
String title = isMale <caret>? "Mr." : "Ms.";
4-
System.out.println("title = " + title);
5-
}
2+
void f(boolean isMale) {
3+
String title = isMale <caret>? "Mr." : "Ms.";
4+
System.out.println("title = " + title);
5+
}
66
}

code_samples/conditional_operator_intention/testSource/testPlugin/YourTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
import com.intellij.testFramework.UsefulTestCase;
66
import com.intellij.testFramework.builders.JavaModuleFixtureBuilder;
77
import com.intellij.testFramework.fixtures.*;
8-
import junit.framework.Assert;
98
import org.junit.*;
109

1110
/**
@@ -14,6 +13,7 @@
1413
* Date: Sep 13, 2010
1514
* Time: 9:35:50 PM
1615
* To change this template use File | Settings | File Templates.
16+
* This test requires Editor > Code Style set to Default IDE
1717
*/
1818

1919
public class YourTest extends UsefulTestCase {

0 commit comments

Comments
 (0)