]> source.dussan.org Git - sonarqube.git/commitdiff
Minor optimization in CountUnresolvedIssuesDecorator
authorSimon Brandhof <simon.brandhof@gmail.com>
Mon, 7 Apr 2014 17:18:08 +0000 (19:18 +0200)
committerSimon Brandhof <simon.brandhof@gmail.com>
Mon, 7 Apr 2014 17:18:20 +0000 (19:18 +0200)
plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/issue/CountUnresolvedIssuesDecorator.java

index 462c9bc2e880427b29a38e2bb177093d2ebc84cd..05ad24edf1c076ec75d756eb403449f644d1465c 100644 (file)
@@ -104,11 +104,9 @@ public class CountUnresolvedIssuesDecorator implements Decorator {
 
         if (Issue.STATUS_OPEN.equals(issue.status())) {
           countOpen++;
-        }
-        if (Issue.STATUS_REOPENED.equals(issue.status())) {
+        } else if (Issue.STATUS_REOPENED.equals(issue.status())) {
           countReopened++;
-        }
-        if (Issue.STATUS_CONFIRMED.equals(issue.status())) {
+        } else if (Issue.STATUS_CONFIRMED.equals(issue.status())) {
           countConfirmed++;
         }
       }