diff --git a/plugins/InspectionGadgets/test/com/siyeh/igtest/errorhandling/return_from_finally_block/ReturnFromFinallyBlock.java b/plugins/InspectionGadgets/test/com/siyeh/igtest/errorhandling/return_from_finally_block/ReturnFromFinallyBlock.java index dd6f002e789c..d79fb2bcd4a3 100644 --- a/plugins/InspectionGadgets/test/com/siyeh/igtest/errorhandling/return_from_finally_block/ReturnFromFinallyBlock.java +++ b/plugins/InspectionGadgets/test/com/siyeh/igtest/errorhandling/return_from_finally_block/ReturnFromFinallyBlock.java @@ -12,7 +12,7 @@ public class ReturnFromFinallyBlock } finally { - return; + return; } } @@ -24,7 +24,7 @@ public class ReturnFromFinallyBlock } finally { - return 3; + return 3; } } diff --git a/plugins/InspectionGadgets/test/com/siyeh/igtest/errorhandling/return_from_finally_block/expected.xml b/plugins/InspectionGadgets/test/com/siyeh/igtest/errorhandling/return_from_finally_block/expected.xml deleted file mode 100644 index 4175d624a9b6..000000000000 --- a/plugins/InspectionGadgets/test/com/siyeh/igtest/errorhandling/return_from_finally_block/expected.xml +++ /dev/null @@ -1,16 +0,0 @@ - - - - ReturnFromFinallyBlock.java - 15 - 'return' inside 'finally' block - <code>return</code> inside 'finally' block #loc - - - - ReturnFromFinallyBlock.java - 27 - 'return' inside 'finally' block - <code>return</code> inside 'finally' block #loc - - \ No newline at end of file diff --git a/plugins/InspectionGadgets/testsrc/com/siyeh/ig/errorhandling/ReturnFromFinallyBlockInspectionTest.java b/plugins/InspectionGadgets/testsrc/com/siyeh/ig/errorhandling/ReturnFromFinallyBlockInspectionTest.java index 108a02df91a6..6b84d6a97479 100644 --- a/plugins/InspectionGadgets/testsrc/com/siyeh/ig/errorhandling/ReturnFromFinallyBlockInspectionTest.java +++ b/plugins/InspectionGadgets/testsrc/com/siyeh/ig/errorhandling/ReturnFromFinallyBlockInspectionTest.java @@ -1,10 +1,18 @@ package com.siyeh.ig.errorhandling; -import com.siyeh.ig.IGInspectionTestCase; +import com.intellij.codeInspection.InspectionProfileEntry; +import com.siyeh.ig.LightInspectionTestCase; +import org.jetbrains.annotations.Nullable; -public class ReturnFromFinallyBlockInspectionTest extends IGInspectionTestCase { +public class ReturnFromFinallyBlockInspectionTest extends LightInspectionTestCase { - public void test() throws Exception { - doTest("com/siyeh/igtest/errorhandling/return_from_finally_block", new ReturnFromFinallyBlockInspection()); + public void testReturnFromFinallyBlock() throws Exception { + doTest(); + } + + @Nullable + @Override + protected InspectionProfileEntry getInspection() { + return new ReturnFromFinallyBlockInspection(); } }