redundant throws: check exceptions in field initializers (IDEA-177240)

This commit is contained in:
Anna.Kozlova
2017-08-09 18:38:29 +02:00
parent 5dd0b79abc
commit 415b8f08ef
5 changed files with 37 additions and 19 deletions
@@ -0,0 +1,2 @@
<?xml version="1.0" encoding="UTF-8"?>
<problems/>
@@ -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();
}
}