forked from JetBrains/intellij-sdk-docs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request JetBrains#105 from JohnHake/master
IJSDK-348: Changes so conditional_operator_intention YourTest passes
- Loading branch information
Showing
3 changed files
with
13 additions
and
13 deletions.
There are no files selected for viewing
16 changes: 8 additions & 8 deletions
16
code_samples/conditional_operator_intention/testData/before.template.after.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | ||
} | ||
} |
8 changes: 4 additions & 4 deletions
8
code_samples/conditional_operator_intention/testData/before.template.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters