From a1a322d1087ed96377327df8f7a2e144451658c6 Mon Sep 17 00:00:00 2001 From: Simon Brandhof Date: Mon, 7 Apr 2014 19:18:08 +0200 Subject: [PATCH] Minor optimization in CountUnresolvedIssuesDecorator --- .../plugins/core/issue/CountUnresolvedIssuesDecorator.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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++; } } -- 2.39.5