Skip to content

Commit

Permalink
Merge pull request JetBrains#105 from JohnHake/master
Browse files Browse the repository at this point in the history
IJSDK-348: Changes so conditional_operator_intention YourTest passes
  • Loading branch information
yole authored Aug 4, 2018
2 parents c2b1c26 + 017ccdb commit a951bfa
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 13 deletions.
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
public class X {
void f(boolean isMale) {
String title;
if (isMale) {
title = "Mr.";
} else {
title = "Ms.";
void f(boolean isMale) {
String title;
if (isMale) {
title = "Mr.";
} else {
title = "Ms.";
}
System.out.println("title = " + title);
}
System.out.println("title = " + title);
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
public class X {
void f(boolean isMale) {
String title = isMale <caret>? "Mr." : "Ms.";
System.out.println("title = " + title);
}
void f(boolean isMale) {
String title = isMale <caret>? "Mr." : "Ms.";
System.out.println("title = " + title);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
import com.intellij.testFramework.UsefulTestCase;
import com.intellij.testFramework.builders.JavaModuleFixtureBuilder;
import com.intellij.testFramework.fixtures.*;
import junit.framework.Assert;
import org.junit.*;

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

public class YourTest extends UsefulTestCase {
Expand Down

0 comments on commit a951bfa

Please sign in to comment.