[java] UnnecessaryLocalBeforeReturn - fix test
We report now the declaration of the local variable that is unnecessary instead of the return.
This commit is contained in:
1 file changed
+1
-1
+1
-1
@@ -298,7 +298,7 @@ public class UnnecessaryLocal {
|
||||
<test-code>
|
||||
<description>FN with anonymous classes #3275</description>
|
||||
<expected-problems>1</expected-problems>
|
||||
<expected-linenumbers>8</expected-linenumbers>
|
||||
<expected-linenumbers>7</expected-linenumbers>
|
||||
<code><![CDATA[
|
||||
import java.util.concurrent.Callable;
|
||||
|
||||
|
||||
Reference in new issue
Block a user