diff --git a/java/java-tests/testData/inspection/dataFlow/fixture/NumberComparisonsWhenValueIsKnown.java b/java/java-tests/testData/inspection/dataFlow/fixture/NumberComparisonsWhenValueIsKnown.java index ee0011f119f9..86032e0cb6fe 100644 --- a/java/java-tests/testData/inspection/dataFlow/fixture/NumberComparisonsWhenValueIsKnown.java +++ b/java/java-tests/testData/inspection/dataFlow/fixture/NumberComparisonsWhenValueIsKnown.java @@ -22,7 +22,7 @@ class Test { void forLoop() { int target = 3; for (int current = 0; current < target; ) { - current = 0; + current = 0; } } @@ -40,7 +40,7 @@ class Test { int target = 3; while (current < target) { - current = 0; + current = 0; } } diff --git a/java/java-tests/testData/inspection/dataFlow/fixture/RedundantAssignment.java b/java/java-tests/testData/inspection/dataFlow/fixture/RedundantAssignment.java index 82d3a2962619..45f3960af0b6 100644 --- a/java/java-tests/testData/inspection/dataFlow/fixture/RedundantAssignment.java +++ b/java/java-tests/testData/inspection/dataFlow/fixture/RedundantAssignment.java @@ -9,7 +9,7 @@ public class RedundantAssignment { if(x % 3 == 1) { flag = true; } else { - flag = false; + flag = false; } } System.out.println(flag); @@ -19,14 +19,14 @@ public class RedundantAssignment { arr[0] = 1; arr[1] = 2; arr[2] = 3; - arr[0] = 1; + arr[0] = 1; } void withTest(int x) { if(x != 0) { System.out.println(x); } else { - x = 0; + x = 0; } System.out.println("oops"); } @@ -36,7 +36,7 @@ public class RedundantAssignment { if(b.hashCode() > 10) { a = null; } else { - a = b; + a = b; } } } \ No newline at end of file diff --git a/java/java-tests/testData/inspection/dataFlow/fixture/TryFinallyInsideFinally.java b/java/java-tests/testData/inspection/dataFlow/fixture/TryFinallyInsideFinally.java index 15cb3dd98651..dfe1c41b2a31 100644 --- a/java/java-tests/testData/inspection/dataFlow/fixture/TryFinallyInsideFinally.java +++ b/java/java-tests/testData/inspection/dataFlow/fixture/TryFinallyInsideFinally.java @@ -16,7 +16,7 @@ class Test { } if (!rangeMarkersDisposed) { - foo = "dd"; + foo = "dd"; } } } diff --git a/platform/platform-resources-en/src/messages/InspectionsBundle.properties b/platform/platform-resources-en/src/messages/InspectionsBundle.properties index 089fc1286bbf..6bb8eff1c1fb 100644 --- a/platform/platform-resources-en/src/messages/InspectionsBundle.properties +++ b/platform/platform-resources-en/src/messages/InspectionsBundle.properties @@ -94,7 +94,7 @@ dataflow.message.constant.method.reference=Method reference result is always ''{ dataflow.message.array.index.out.of.bounds=Array index is out of bounds dataflow.message.immutable.modified=Immutable object is modified dataflow.message.immutable.passed=Immutable object is passed where mutable is expected -dataflow.message.redundant.assignment=Value assigned to the variable is already assigned to it +dataflow.message.redundant.assignment=Variable is already assigned to this value #deprecated inspection.deprecated.display.name=Deprecated API usage