mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 06:05:01 +07:00
IfStatementWithIdenticalBranches: comment preserve extracting then else
IDEA-192301
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
// "Extract common part removing branch " "true"
|
||||
|
||||
import java.io.*;
|
||||
|
||||
class F {
|
||||
boolean x(File file) {
|
||||
// quick fail
|
||||
if (file.getPath().contains("/test/")) {
|
||||
System.out.println();
|
||||
}
|
||||
return false;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
// "Extract common part removing branch " "true"
|
||||
|
||||
import java.io.*;
|
||||
|
||||
class F {
|
||||
boolean x(File file) {
|
||||
if<caret> (file.getPath().contains("/test/")) {
|
||||
System.out.println();
|
||||
return false;
|
||||
}
|
||||
else {
|
||||
return false; // quick fail
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user