Files
openide/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/quickFix/surroundWithTry/afterInLocalClass.java
Tagir Valeev 5e592af488 SurroundWithTryCatchFix: support local classes properly
GitOrigin-RevId: 50ee098d1287f976331692361ff29bf3dbbbd26a
2020-04-08 08:41:53 +00:00

19 lines
321 B
Java

// "Surround with try/catch" "true"
import java.io.*;
class C {
public void m() {
class Local {
InputStream in;
{
try {
in = new FileInputStream("");
} catch (FileNotFoundException e) {
e.printStackTrace();
}
}
}
}
}