diff options
author | Simon Brandhof <simon.brandhof@sonarsource.com> | 2016-05-05 10:15:04 +0200 |
---|---|---|
committer | Simon Brandhof <simon.brandhof@sonarsource.com> | 2016-05-09 10:54:01 +0200 |
commit | ac73ac876fae3d027b9ffc83a79b8d324d409a04 (patch) | |
tree | 4959a6886149dc468a32090d98e301aa3e472e98 /sonar-scanner-engine/src/main/java/org | |
parent | 0205bb8857ec30aa907b1efad1355740cc91dc0f (diff) | |
download | sonarqube-ac73ac876fae3d027b9ffc83a79b8d324d409a04.tar.gz sonarqube-ac73ac876fae3d027b9ffc83a79b8d324d409a04.zip |
SONAR-7595 Issues are not closed in some block move conditions
Diffstat (limited to 'sonar-scanner-engine/src/main/java/org')
-rw-r--r-- | sonar-scanner-engine/src/main/java/org/sonar/batch/issue/tracking/ServerIssueFromWs.java | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sonar-scanner-engine/src/main/java/org/sonar/batch/issue/tracking/ServerIssueFromWs.java b/sonar-scanner-engine/src/main/java/org/sonar/batch/issue/tracking/ServerIssueFromWs.java index 7898d5c88eb..03937e63028 100644 --- a/sonar-scanner-engine/src/main/java/org/sonar/batch/issue/tracking/ServerIssueFromWs.java +++ b/sonar-scanner-engine/src/main/java/org/sonar/batch/issue/tracking/ServerIssueFromWs.java @@ -20,9 +20,10 @@ package org.sonar.batch.issue.tracking; import javax.annotation.CheckForNull; - -import org.sonar.core.issue.tracking.Trackable; import org.sonar.api.rule.RuleKey; +import org.sonar.core.issue.tracking.Trackable; + +import static org.apache.commons.lang.StringUtils.trim; public class ServerIssueFromWs implements Trackable { @@ -59,7 +60,7 @@ public class ServerIssueFromWs implements Trackable { @Override public String getMessage() { - return dto.hasMsg() ? dto.getMsg() : ""; + return dto.hasMsg() ? trim(dto.getMsg()) : ""; } } |