diff --git a/java/java-tests/testData/inspection/dataFlow/fixture/SameArguments.java b/java/java-tests/testData/inspection/dataFlow/fixture/SameArguments.java index 6ca7e2cf235e..6746d468866f 100644 --- a/java/java-tests/testData/inspection/dataFlow/fixture/SameArguments.java +++ b/java/java-tests/testData/inspection/dataFlow/fixture/SameArguments.java @@ -1,16 +1,16 @@ class X { void test(int x, int y) { - System.out.println(Math.max(x, x)); + System.out.println(Math.max(x, x)); int z = x; - System.out.println(Math.min(x, z)); + System.out.println(Math.min(x, z)); String s = "foo"; String t = "foo"; - System.out.println("foobar".replace(s, t)); - System.out.println("foobar".replace('x', 'x')); + System.out.println("foobar".replace(s, t)); + System.out.println("foobar".replace('x', 'x')); } int testCondition(int a) { - if(a == 100) return Math.max(a, 100); + if(a == 100) return Math.max(a, 100); return 0; } } \ No newline at end of file diff --git a/platform/platform-resources-en/src/messages/InspectionsBundle.properties b/platform/platform-resources-en/src/messages/InspectionsBundle.properties index 51253a5c1cc9..68805160727f 100644 --- a/platform/platform-resources-en/src/messages/InspectionsBundle.properties +++ b/platform/platform-resources-en/src/messages/InspectionsBundle.properties @@ -97,7 +97,7 @@ 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=Variable is already assigned to this value -dataflow.message.pointless.same.arguments=Arguments of '#ref()' are always the same which unlikely makes sense +dataflow.message.pointless.same.arguments=Arguments of '#ref' are the same. Calling this method with the same arguments is meaningless. inspection.optional.get.without.is.present.message={0}.#ref() without ''isPresent()'' check