mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-16 16:02:16 +07:00
preserve comments: invert if (IDEA-205835)
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
// "Invert 'if' condition" "true"
|
||||
public class C {
|
||||
public boolean isAcceptable(Object element) {
|
||||
if (element == null) {
|
||||
return false;
|
||||
}
|
||||
System.out.println();
|
||||
//c1
|
||||
if (true) {
|
||||
//c2
|
||||
}
|
||||
return false;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
// "Invert 'if' condition" "true"
|
||||
public class C {
|
||||
public boolean isAcceptable(Object element) {
|
||||
i<caret>f (element != null) {
|
||||
System.out.println();
|
||||
//c1
|
||||
if (true) {
|
||||
//c2
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user