Java inspection: Highlight the whole return statement in "Move return to computation...
authorPavel Dolgov <pavel.dolgov@jetbrains.com>
Wed, 7 Sep 2016 14:15:45 +0000 (17:15 +0300)
committerPavel Dolgov <pavel.dolgov@jetbrains.com>
Wed, 7 Sep 2016 14:15:45 +0000 (17:15 +0300)
commit0b10403b201ce95048569d61c52ab716bc2ffbc8
treebfd8a0758fd3cf23291a0f623796b61477a20e1e
parent7883184f5a943611083abb38876e28f3e79c1fae
Java inspection: Highlight the whole return statement in "Move return to computation", removed duplicate test cases, changed inspection's level to INFO (IDEA-121153)
38 files changed:
java/java-impl/src/com/intellij/codeInspection/intermediaryVariable/ReturnSeparatedFromComputationInspection.java
java/java-tests/testData/codeInsight/daemonCodeAnalyzer/quickFix/returnSeparatedFromComputation/afterGenericTypeCompatible.java [new file with mode: 0644]
java/java-tests/testData/codeInsight/daemonCodeAnalyzer/quickFix/returnSeparatedFromComputation/afterLabeledFor3.java [new file with mode: 0644]
java/java-tests/testData/codeInsight/daemonCodeAnalyzer/quickFix/returnSeparatedFromComputation/afterLabeledFor4.java [new file with mode: 0644]
java/java-tests/testData/codeInsight/daemonCodeAnalyzer/quickFix/returnSeparatedFromComputation/beforeGenericTypeCompatible.java [new file with mode: 0644]
java/java-tests/testData/codeInsight/daemonCodeAnalyzer/quickFix/returnSeparatedFromComputation/beforeGenericTypeIncompatible.java [moved from java/java-tests/testData/inspection/returnSeparatedFromComputation/GenericTypeIncompatible.java with 66% similarity]
java/java-tests/testData/codeInsight/daemonCodeAnalyzer/quickFix/returnSeparatedFromComputation/beforeLabeledFor3.java [new file with mode: 0644]
java/java-tests/testData/codeInsight/daemonCodeAnalyzer/quickFix/returnSeparatedFromComputation/beforeLabeledFor4.java [new file with mode: 0644]
java/java-tests/testData/codeInsight/daemonCodeAnalyzer/quickFix/returnSeparatedFromComputation/beforeSideEffectInIf.java [moved from java/java-tests/testData/inspection/returnSeparatedFromComputation/SideEffectInIf.java with 52% similarity]
java/java-tests/testData/inspection/returnSeparatedFromComputation/Assert.java [deleted file]
java/java-tests/testData/inspection/returnSeparatedFromComputation/AssignmentChainUnderIf.java [deleted file]
java/java-tests/testData/inspection/returnSeparatedFromComputation/BreakFromLoopInTryWithResources.java [deleted file]
java/java-tests/testData/inspection/returnSeparatedFromComputation/DoWhileTrue.java [deleted file]
java/java-tests/testData/inspection/returnSeparatedFromComputation/ForWithoutCondition.java [deleted file]
java/java-tests/testData/inspection/returnSeparatedFromComputation/GenericTypeCompatible.java [deleted file]
java/java-tests/testData/inspection/returnSeparatedFromComputation/HashCode.java [deleted file]
java/java-tests/testData/inspection/returnSeparatedFromComputation/IfElseNoWrite.java [deleted file]
java/java-tests/testData/inspection/returnSeparatedFromComputation/IfElseWriteInBoth.java [deleted file]
java/java-tests/testData/inspection/returnSeparatedFromComputation/IfElseWriteInElse.java [deleted file]
java/java-tests/testData/inspection/returnSeparatedFromComputation/IfElseWriteInIf.java [deleted file]
java/java-tests/testData/inspection/returnSeparatedFromComputation/LabeledBlock.java [deleted file]
java/java-tests/testData/inspection/returnSeparatedFromComputation/LabeledFor.java [deleted file]
java/java-tests/testData/inspection/returnSeparatedFromComputation/LabeledFor2.java [deleted file]
java/java-tests/testData/inspection/returnSeparatedFromComputation/LabeledIf.java [deleted file]
java/java-tests/testData/inspection/returnSeparatedFromComputation/NestedBlock.java [deleted file]
java/java-tests/testData/inspection/returnSeparatedFromComputation/NestedBlockSideEffect.java [deleted file]
java/java-tests/testData/inspection/returnSeparatedFromComputation/NestedIf.java [deleted file]
java/java-tests/testData/inspection/returnSeparatedFromComputation/NestedIfInnerElse.java [deleted file]
java/java-tests/testData/inspection/returnSeparatedFromComputation/NestedIfOuterElse.java [deleted file]
java/java-tests/testData/inspection/returnSeparatedFromComputation/ReturnOutsideTryWithResources.java [deleted file]
java/java-tests/testData/inspection/returnSeparatedFromComputation/SimpleDoWhile.java [deleted file]
java/java-tests/testData/inspection/returnSeparatedFromComputation/SimpleFor.java [deleted file]
java/java-tests/testData/inspection/returnSeparatedFromComputation/SimpleForeach.java [deleted file]
java/java-tests/testData/inspection/returnSeparatedFromComputation/SimpleIf.java [deleted file]
java/java-tests/testData/inspection/returnSeparatedFromComputation/SimpleWhile.java [deleted file]
java/java-tests/testData/inspection/returnSeparatedFromComputation/WhileTrue.java [deleted file]
java/java-tests/testSrc/com/intellij/codeInspection/ReturnSeparatedFromComputationTest.java [deleted file]
resources/src/META-INF/IdeaPlugin.xml