From: Simon Brandhof Date: Mon, 7 Apr 2014 17:18:08 +0000 (+0200) Subject: Minor optimization in CountUnresolvedIssuesDecorator X-Git-Tag: 4.3~111 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=a1a322d1087ed96377327df8f7a2e144451658c6;p=sonarqube.git Minor optimization in CountUnresolvedIssuesDecorator --- diff --git a/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/issue/CountUnresolvedIssuesDecorator.java b/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/issue/CountUnresolvedIssuesDecorator.java index 462c9bc2e88..05ad24edf1c 100644 --- a/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/issue/CountUnresolvedIssuesDecorator.java +++ b/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/issue/CountUnresolvedIssuesDecorator.java @@ -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++; } }