From 5d55f72823ad1fac99682c4f9bd2aa91e0ad776a Mon Sep 17 00:00:00 2001 From: Evgeny Mandrikov Date: Mon, 19 Mar 2012 23:24:19 +0400 Subject: [PATCH] SONAR-3072 Fix wrong refactoring of ViolationTrackingDecorator --- .../plugins/core/timemachine/ViolationTrackingDecorator.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.39.5