aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-duplications/src/main/java/net/sourceforge/pmd/cpd/TokenEntry.java
diff options
context:
space:
mode:
Diffstat (limited to 'sonar-duplications/src/main/java/net/sourceforge/pmd/cpd/TokenEntry.java')
-rw-r--r--sonar-duplications/src/main/java/net/sourceforge/pmd/cpd/TokenEntry.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/sonar-duplications/src/main/java/net/sourceforge/pmd/cpd/TokenEntry.java b/sonar-duplications/src/main/java/net/sourceforge/pmd/cpd/TokenEntry.java
index 69d1da87ce9..5a45dcf2623 100644
--- a/sonar-duplications/src/main/java/net/sourceforge/pmd/cpd/TokenEntry.java
+++ b/sonar-duplications/src/main/java/net/sourceforge/pmd/cpd/TokenEntry.java
@@ -132,6 +132,7 @@ public class TokenEntry implements Comparable<TokenEntry> {
return other.hashCode == hashCode;
}
+ @Override
public int compareTo(TokenEntry other) {
return getIndex() - other.getIndex();
}