disable remove redundant else if then branch can throw exception (IDEA-156142)

This commit is contained in:
Anna.Kozlova
2016-05-17 17:41:48 +02:00
parent 3457915069
commit ff555bd832
2 changed files with 17 additions and 1 deletions
@@ -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 {}
}