mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 03:13:40 +07:00
disable remove redundant else if then branch can throw exception (IDEA-156142)
This commit is contained in:
+15
@@ -0,0 +1,15 @@
|
||||
// "Remove redundant 'else'" "false"
|
||||
import java.io.IOException;
|
||||
class a {
|
||||
void foo(boolean condition) throws IOException{
|
||||
if (condition) {
|
||||
tMethod();
|
||||
}
|
||||
e<caret>lse {
|
||||
System.out.println("else");
|
||||
}
|
||||
}
|
||||
|
||||
void tMethod() throws IOException {}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user