mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 06:11:42 +07:00
redundant throws: check exceptions in field initializers (IDEA-177240)
This commit is contained in:
@@ -0,0 +1,2 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<problems/>
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
package aPackage;
|
||||
|
||||
class Test {
|
||||
private final Test2 test2 = new Test2();
|
||||
|
||||
public Test() throws Exception {
|
||||
}
|
||||
}
|
||||
|
||||
class Test2 {
|
||||
public Test2() throws Exception {
|
||||
throw new Exception();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user