]> source.dussan.org Git - sonarqube.git/commitdiff
Fix issue tracking when comparing only hash of line
authorSimon Brandhof <simon.brandhof@sonarsource.com>
Thu, 9 Jul 2015 05:30:32 +0000 (07:30 +0200)
committerSimon Brandhof <simon.brandhof@sonarsource.com>
Thu, 9 Jul 2015 05:30:32 +0000 (07:30 +0200)
sonar-core/src/main/java/org/sonar/core/issue/tracking/Tracker.java

index 4ec4f84220b342f3c1546db7b017710bfb96235f..66d103134c6f07dd5d5a90bd03756eba4024ee89 100644 (file)
@@ -261,7 +261,7 @@ public class Tracker<RAW extends Trackable, BASE extends Trackable> {
       if (this == o) {
         return true;
       }
-      LineAndLineHashKey that = (LineAndLineHashKey) o;
+      LineHashKey that = (LineHashKey) o;
       // start with most discriminant field
       return lineHash.equals(that.lineHash)
         && ruleKey.equals(that.ruleKey);