File tree Expand file tree Collapse file tree 3 files changed +13
-13
lines changed
code_samples/conditional_operator_intention Expand file tree Collapse file tree 3 files changed +13
-13
lines changed Original file line number Diff line number Diff line change 1
1
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 );
8
10
}
9
- System .out .println ("title = " + title );
10
- }
11
11
}
Original file line number Diff line number Diff line change 1
1
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
+ }
6
6
}
Original file line number Diff line number Diff line change 5
5
import com .intellij .testFramework .UsefulTestCase ;
6
6
import com .intellij .testFramework .builders .JavaModuleFixtureBuilder ;
7
7
import com .intellij .testFramework .fixtures .*;
8
- import junit .framework .Assert ;
9
8
import org .junit .*;
10
9
11
10
/**
14
13
* Date: Sep 13, 2010
15
14
* Time: 9:35:50 PM
16
15
* To change this template use File | Settings | File Templates.
16
+ * This test requires Editor > Code Style set to Default IDE
17
17
*/
18
18
19
19
public class YourTest extends UsefulTestCase {
You can’t perform that action at this time.
0 commit comments