Files
openide/java/java-tests/testData/inspection/dataFlow/fixture/TryFinallyInsideFinally.java
T
peter abc7c3eace IDEA-117626 good code yellow: variable modification inside 'try' clause
* maintain separate $exception$ variables to avoid nested try-s clash
2014-10-01 20:09:12 +02:00

23 lines
356 B
Java

class Test {
private String foo;
public void test() {
boolean rangeMarkersDisposed = false;
try {
if (foo == "dd") {
throw new RuntimeException();
}
rangeMarkersDisposed = true;
}
finally {
try {
}
finally {
}
if (!rangeMarkersDisposed) {
foo = "dd";
}
}
}
}