aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-duplications/src/test/java/org/sonar
diff options
context:
space:
mode:
authorBruno Andrade <bruno@artsman.dev>2023-06-19 12:20:35 +0100
committersonartech <sonartech@sonarsource.com>2023-06-19 20:03:13 +0000
commitc1b811da429ce068a15b21d87aa969dd6d956a72 (patch)
tree8f27024ace955e92d7af0f9c761ad761e68852b3 /sonar-duplications/src/test/java/org/sonar
parent264a9740a7935d9e5af42bb8f5e4cd67dec64b65 (diff)
downloadsonarqube-c1b811da429ce068a15b21d87aa969dd6d956a72.tar.gz
sonarqube-c1b811da429ce068a15b21d87aa969dd6d956a72.zip
NO-JIRA (code smell fix): using isEmpty, isTrue, isNegative for better readability
Diffstat (limited to 'sonar-duplications/src/test/java/org/sonar')
-rw-r--r--sonar-duplications/src/test/java/org/sonar/duplications/utils/FastStringComparatorTest.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/sonar-duplications/src/test/java/org/sonar/duplications/utils/FastStringComparatorTest.java b/sonar-duplications/src/test/java/org/sonar/duplications/utils/FastStringComparatorTest.java
index 70bbc1974e4..308cfe5f028 100644
--- a/sonar-duplications/src/test/java/org/sonar/duplications/utils/FastStringComparatorTest.java
+++ b/sonar-duplications/src/test/java/org/sonar/duplications/utils/FastStringComparatorTest.java
@@ -35,7 +35,7 @@ public class FastStringComparatorTest {
String s2 = "PE";
assertThat(s1).hasSameHashCodeAs(s2);
- assertThat(compare(s1, s2)).isLessThan(0);
+ assertThat(compare(s1, s2)).isNegative();
assertThat(compare(s2, s1)).isPositive();
}