mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
ComparatorResultComparisonInspection: renamed to "Suspicious usage of compare method"
This commit is contained in:
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Fix all 'Comparison of compare method result with specific constant' problems in file" "true"
|
||||
// "Fix all 'Suspicious usage of compare method' problems in file" "true"
|
||||
import java.util.*;
|
||||
|
||||
class Test {
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Fix all 'Comparison of compare method result with specific constant' problems in file" "true"
|
||||
// "Fix all 'Suspicious usage of compare method' problems in file" "true"
|
||||
import java.util.*;
|
||||
|
||||
class Test {
|
||||
|
||||
@@ -870,5 +870,6 @@ inspection.replace.with.trivial.lambda.fix.name=Replace with lambda returning ''
|
||||
inspection.useless.null.check.message=Useless null-check: {0} is never null
|
||||
inspection.useless.null.check.fix.family.name=Remove useless null-check
|
||||
|
||||
inspection.comparator.result.comparison.display.name=Comparison of compare method result with specific constant
|
||||
inspection.comparator.result.comparison.display.name=Suspicious usage of compare method
|
||||
inspection.comparator.result.comparison.problem.display.name=Comparison of compare method result with specific constant
|
||||
inspection.comparator.result.comparison.fix.family.name=Fix comparator result comparison
|
||||
|
||||
+1
-1
@@ -78,7 +78,7 @@ public class ComparatorResultComparisonInspection extends BaseJavaBatchLocalInsp
|
||||
if (jodaCondition) {
|
||||
relationType = relationType.getFlipped();
|
||||
}
|
||||
holder.registerProblem(sign, InspectionsBundle.message("inspection.comparator.result.comparison.display.name"),
|
||||
holder.registerProblem(sign, InspectionsBundle.message("inspection.comparator.result.comparison.problem.display.name"),
|
||||
new ComparatorComparisonFix(jodaCondition, relationType));
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user