aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-batch-protocol/src
diff options
context:
space:
mode:
authorJulien HENRY <julien.henry@sonarsource.com>2015-01-26 09:46:28 +0100
committerJulien HENRY <julien.henry@sonarsource.com>2015-01-26 10:19:38 +0100
commitfa23d5c75f19292e488c6aed3da14794b193a5de (patch)
tree35da53955d6bd45b15b708fcbb405a0c55327973 /sonar-batch-protocol/src
parentaa5364a765fe4ef24ee1fb49c016fe70dafc3ef2 (diff)
downloadsonarqube-fa23d5c75f19292e488c6aed3da14794b193a5de.tar.gz
sonarqube-fa23d5c75f19292e488c6aed3da14794b193a5de.zip
SONAR-6012 Fix manual severity and get previous creation date
Diffstat (limited to 'sonar-batch-protocol/src')
-rw-r--r--sonar-batch-protocol/src/main/java/org/sonar/batch/protocol/input/issues/PreviousIssue.java4
-rw-r--r--sonar-batch-protocol/src/test/java/org/sonar/batch/protocol/input/issues/PreviousIssueHelperTest.java2
2 files changed, 3 insertions, 3 deletions
diff --git a/sonar-batch-protocol/src/main/java/org/sonar/batch/protocol/input/issues/PreviousIssue.java b/sonar-batch-protocol/src/main/java/org/sonar/batch/protocol/input/issues/PreviousIssue.java
index 8239717deb0..f519286ff4a 100644
--- a/sonar-batch-protocol/src/main/java/org/sonar/batch/protocol/input/issues/PreviousIssue.java
+++ b/sonar-batch-protocol/src/main/java/org/sonar/batch/protocol/input/issues/PreviousIssue.java
@@ -33,7 +33,7 @@ public class PreviousIssue implements Serializable {
private Integer line;
private String message;
private String severity;
- private Boolean manualSeverity;
+ private boolean manualSeverity;
private String resolution;
private String status;
private String checksum;
@@ -144,7 +144,7 @@ public class PreviousIssue implements Serializable {
return ruleKey;
}
- public Date getCreationDate() {
+ public Date creationDate() {
return creationDate;
}
diff --git a/sonar-batch-protocol/src/test/java/org/sonar/batch/protocol/input/issues/PreviousIssueHelperTest.java b/sonar-batch-protocol/src/test/java/org/sonar/batch/protocol/input/issues/PreviousIssueHelperTest.java
index 750b35f8280..ffbc9545d85 100644
--- a/sonar-batch-protocol/src/test/java/org/sonar/batch/protocol/input/issues/PreviousIssueHelperTest.java
+++ b/sonar-batch-protocol/src/test/java/org/sonar/batch/protocol/input/issues/PreviousIssueHelperTest.java
@@ -61,7 +61,7 @@ public class PreviousIssueHelperTest {
"[{\"key\": \"key1\", \"componentKey\": \"key\", \"ruleKey\": \"rulekey\", \"ruleRepo\": \"repokey\", \"line\": 2,\"message\": \"message\", " +
"\"severity\": \"severity\", \"manualSeverity\": true, \"resolution\": \"resolution\", \"status\": \"status\", \"checksum\": \"checksum\",\"assigneeLogin\": \"login\"},"
+
- "{\"key\": \"key2\"}]",
+ "{\"key\": \"key2\", \"manualSeverity\": false}]",
out.getBuffer().toString(), true);
}