mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-09 20:42:52 +07:00
local can be final: suggest to add final to explicitly final params (IDEA-169342)
This commit is contained in:
+2
-2
@@ -3,8 +3,8 @@ import java.io.*;
|
||||
class CatchParameter {
|
||||
|
||||
void m() {
|
||||
try (InputStream in = new FileInputStream("filename")) { // don't warn about 'in' because it is implicitly final
|
||||
} catch (FileNotFoundException | RuntimeException e) { // don't warn about 'e' because it is implicitly final
|
||||
try (final InputStream in = new FileInputStream("filename")) {
|
||||
} catch (final FileNotFoundException | RuntimeException e) {
|
||||
} catch (IOException e) {
|
||||
throw new RuntimeException(e);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user