aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJulien HENRY <julien.henry@sonarsource.com>2014-10-30 09:49:06 +0100
committerJulien HENRY <julien.henry@sonarsource.com>2014-10-30 10:01:06 +0100
commit7c6bdb3fae33e96d69fa91da05bdbba7e6a7c840 (patch)
tree4420ee660bcd4c33bba684b064bf7ad26f81290e
parentd32e002169ab3578de477ea882d2adfff3c47a7c (diff)
downloadsonarqube-7c6bdb3fae33e96d69fa91da05bdbba7e6a7c840.tar.gz
sonarqube-7c6bdb3fae33e96d69fa91da05bdbba7e6a7c840.zip
Fix issue tracking regression after last optimizations
-rw-r--r--plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/issue/IssueTrackingDecorator.java2
-rw-r--r--sonar-batch/src/main/java/org/sonar/batch/issue/IssueCache.java4
2 files changed, 3 insertions, 3 deletions
diff --git a/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/issue/IssueTrackingDecorator.java b/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/issue/IssueTrackingDecorator.java
index 27ee9a8ca6f..37276d00f8e 100644
--- a/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/issue/IssueTrackingDecorator.java
+++ b/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/issue/IssueTrackingDecorator.java
@@ -114,7 +114,7 @@ public class IssueTrackingDecorator implements Decorator {
for (Issue issue : issueCache.byComponent(resource.getEffectiveKey())) {
issues.add((DefaultIssue) issue);
}
- issueCache.removeAll(resource.getEffectiveKey());
+ issueCache.clear(resource.getEffectiveKey());
// issues = all the issues created by rule engines during this module scan and not excluded by filters
// all the issues that are not closed in db before starting this module scan, including manual issues
diff --git a/sonar-batch/src/main/java/org/sonar/batch/issue/IssueCache.java b/sonar-batch/src/main/java/org/sonar/batch/issue/IssueCache.java
index 7fd894bca6e..f804fc62efd 100644
--- a/sonar-batch/src/main/java/org/sonar/batch/issue/IssueCache.java
+++ b/sonar-batch/src/main/java/org/sonar/batch/issue/IssueCache.java
@@ -49,7 +49,7 @@ public class IssueCache implements BatchComponent {
return this;
}
- public boolean removeAll(String componentKey) {
- return cache.remove(componentKey);
+ public void clear(String componentKey) {
+ cache.clear(componentKey);
}
}