aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-scanner-engine/src/main/java
diff options
context:
space:
mode:
authorJulien HENRY <julien.henry@sonarsource.com>2017-10-19 12:10:27 +0200
committerJulien HENRY <julien.henry@sonarsource.com>2017-10-20 18:45:15 +1000
commitf185740ba7aa84579af60781ed9282e31fa4d94a (patch)
treeacc3a51c1cfe6e1ad0bc0b96afceb3e0c5ba91dd /sonar-scanner-engine/src/main/java
parentc521266eb060e5af522583c74f0bfb8c145f5f9f (diff)
downloadsonarqube-f185740ba7aa84579af60781ed9282e31fa4d94a.tar.gz
sonarqube-f185740ba7aa84579af60781ed9282e31fa4d94a.zip
SONAR-9949 Also merge open issues from short living branches
Diffstat (limited to 'sonar-scanner-engine/src/main/java')
-rw-r--r--sonar-scanner-engine/src/main/java/org/sonar/scanner/issue/tracking/ServerIssueFromWs.java9
1 files changed, 8 insertions, 1 deletions
diff --git a/sonar-scanner-engine/src/main/java/org/sonar/scanner/issue/tracking/ServerIssueFromWs.java b/sonar-scanner-engine/src/main/java/org/sonar/scanner/issue/tracking/ServerIssueFromWs.java
index a0888d20341..2ddba9e2015 100644
--- a/sonar-scanner-engine/src/main/java/org/sonar/scanner/issue/tracking/ServerIssueFromWs.java
+++ b/sonar-scanner-engine/src/main/java/org/sonar/scanner/issue/tracking/ServerIssueFromWs.java
@@ -19,8 +19,10 @@
*/
package org.sonar.scanner.issue.tracking;
+import java.util.Date;
import javax.annotation.CheckForNull;
import org.sonar.api.rule.RuleKey;
+import org.sonar.api.utils.DateUtils;
import org.sonar.core.issue.tracking.Trackable;
import static org.apache.commons.lang.StringUtils.trim;
@@ -65,7 +67,12 @@ public class ServerIssueFromWs implements Trackable {
@Override
public String getStatus() {
- throw new UnsupportedOperationException();
+ return dto.getStatus();
+ }
+
+ @Override
+ public Date getCreationDate() {
+ return DateUtils.longToDate(dto.getCreationDate());
}
}