mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-84036 Redundant thrown exception not detected if the method calls itself
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<problems>
|
||||
<problem>
|
||||
<file>Foo.java</file>
|
||||
<line>4</line>
|
||||
<description>IOException</description>
|
||||
</problem>
|
||||
</problems>
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
import java.io.*;
|
||||
|
||||
public class Foo {
|
||||
public void foo() throws IOException {
|
||||
if (4 > 3) {
|
||||
foo();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -41,4 +41,9 @@ public class RedundantThrowTest extends InspectionTestCase {
|
||||
public void testimplicitSuper() throws Exception {
|
||||
doTest();
|
||||
}
|
||||
|
||||
public void testselfCall() throws Exception {
|
||||
doTest();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user