]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-3072 Fix wrong refactoring of ViolationTrackingDecorator
authorEvgeny Mandrikov <mandrikov@gmail.com>
Mon, 19 Mar 2012 19:24:19 +0000 (23:24 +0400)
committerEvgeny Mandrikov <mandrikov@gmail.com>
Mon, 19 Mar 2012 19:35:28 +0000 (23:35 +0400)
plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/timemachine/ViolationTrackingDecorator.java

index ad06764637d448d06aa58ad802a6852b9e86e5e2..a01d02f6a3e5e054928644bcd2803f7bc2f27754 100644 (file)
@@ -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;
     }