From: Evgeny Mandrikov Date: Mon, 19 Mar 2012 19:24:19 +0000 (+0400) Subject: SONAR-3072 Fix wrong refactoring of ViolationTrackingDecorator X-Git-Tag: 3.0~172 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=5d55f72823ad1fac99682c4f9bd2aa91e0ad776a;p=sonarqube.git SONAR-3072 Fix wrong refactoring of ViolationTrackingDecorator --- diff --git a/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/timemachine/ViolationTrackingDecorator.java b/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/timemachine/ViolationTrackingDecorator.java index ad06764637d..a01d02f6a3e 100644 --- a/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/timemachine/ViolationTrackingDecorator.java +++ b/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/timemachine/ViolationTrackingDecorator.java @@ -54,7 +54,7 @@ public class ViolationTrackingDecorator implements Decorator { referenceViolationsMap.clear(); ViolationQuery violationQuery = ViolationQuery.create().forResource(resource).setSwitchMode(ViolationQuery.SwitchMode.BOTH); - if (!context.getViolations(violationQuery).isEmpty()) { + if (context.getViolations(violationQuery).isEmpty()) { return; }