From fa23d5c75f19292e488c6aed3da14794b193a5de Mon Sep 17 00:00:00 2001 From: Julien HENRY Date: Mon, 26 Jan 2015 09:46:28 +0100 Subject: SONAR-6012 Fix manual severity and get previous creation date --- .../java/org/sonar/batch/protocol/input/issues/PreviousIssue.java | 4 ++-- .../sonar/batch/protocol/input/issues/PreviousIssueHelperTest.java | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'sonar-batch-protocol/src') 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); } -- cgit v1.2.3