diff options
author | Sébastien Lesaint <sebastien.lesaint@sonarsource.com> | 2016-05-24 12:48:25 +0200 |
---|---|---|
committer | Sébastien Lesaint <sebastien.lesaint@sonarsource.com> | 2016-05-24 16:36:20 +0200 |
commit | 9e291cdec361a9d49adf6da953913f0ce676f9b7 (patch) | |
tree | 10dc34235b354c27ec0b3d046159cb2b16f06959 /sonar-duplications/src/main/java/org/sonar | |
parent | a3837a58d3d2f329b994dcafdb1adfed660fb25d (diff) | |
download | sonarqube-9e291cdec361a9d49adf6da953913f0ce676f9b7.tar.gz sonarqube-9e291cdec361a9d49adf6da953913f0ce676f9b7.zip |
remove use of Guava's Objects.equal
Diffstat (limited to 'sonar-duplications/src/main/java/org/sonar')
-rw-r--r-- | sonar-duplications/src/main/java/org/sonar/duplications/detector/suffixtree/SuffixTree.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sonar-duplications/src/main/java/org/sonar/duplications/detector/suffixtree/SuffixTree.java b/sonar-duplications/src/main/java/org/sonar/duplications/detector/suffixtree/SuffixTree.java index fc0975dd87d..9d97443a8bc 100644 --- a/sonar-duplications/src/main/java/org/sonar/duplications/detector/suffixtree/SuffixTree.java +++ b/sonar-duplications/src/main/java/org/sonar/duplications/detector/suffixtree/SuffixTree.java @@ -19,7 +19,7 @@ */ package org.sonar.duplications.detector.suffixtree; -import com.google.common.base.Objects; +import java.util.Objects; /** * Provides algorithm to construct suffix tree. @@ -80,7 +80,7 @@ public final class SuffixTree { // implicit node, a little more complicated edge = active.getOriginNode().findEdge(symbolAt(active.getBeginIndex())); int span = active.getSpan(); - if (Objects.equal(symbolAt(edge.getBeginIndex() + span + 1), symbolAt(endIndex))) { + if (Objects.equals(symbolAt(edge.getBeginIndex() + span + 1), symbolAt(endIndex))) { break; } parentNode = edge.splitEdge(active); |