From cbc00be035405cade14eef1366a89b65583242b8 Mon Sep 17 00:00:00 2001 From: Julien Lancelot Date: Thu, 24 Mar 2016 17:44:13 +0100 Subject: SONAR-7473 Drop 'reporter' field from backend --- .../src/main/java/org/sonar/core/issue/DefaultIssue.java | 12 +++++------- .../main/java/org/sonar/core/issue/DefaultIssueBuilder.java | 7 ++++--- 2 files changed, 9 insertions(+), 10 deletions(-) (limited to 'sonar-core/src/main') diff --git a/sonar-core/src/main/java/org/sonar/core/issue/DefaultIssue.java b/sonar-core/src/main/java/org/sonar/core/issue/DefaultIssue.java index aa56371cb11..e8885be59ba 100644 --- a/sonar-core/src/main/java/org/sonar/core/issue/DefaultIssue.java +++ b/sonar-core/src/main/java/org/sonar/core/issue/DefaultIssue.java @@ -75,7 +75,6 @@ public class DefaultIssue implements Issue, Trackable, org.sonar.api.ce.measure. private Duration effort; private String status; private String resolution; - private String reporter; private String assignee; private String checksum; private Map attributes = null; @@ -340,15 +339,14 @@ public class DefaultIssue implements Issue, Trackable, org.sonar.api.ce.measure. return this; } + /** + * @deprecated since 5.5, manual issue feature has been dropped. + */ + @Deprecated @Override @CheckForNull public String reporter() { - return reporter; - } - - public DefaultIssue setReporter(@Nullable String s) { - this.reporter = s; - return this; + return null; } @Override diff --git a/sonar-core/src/main/java/org/sonar/core/issue/DefaultIssueBuilder.java b/sonar-core/src/main/java/org/sonar/core/issue/DefaultIssueBuilder.java index a97a4c089bd..4f44a40bba1 100644 --- a/sonar-core/src/main/java/org/sonar/core/issue/DefaultIssueBuilder.java +++ b/sonar-core/src/main/java/org/sonar/core/issue/DefaultIssueBuilder.java @@ -41,7 +41,6 @@ public class DefaultIssueBuilder implements Issuable.IssueBuilder { private String message; private String severity; private Double effortToFix; - private String reporter; private String assignee; private RuleType type; private Map attributes; @@ -114,9 +113,12 @@ public class DefaultIssueBuilder implements Issuable.IssueBuilder { return this; } + /** + * @deprecated since 5.5, manual issue feature has been dropped. + */ + @Deprecated @Override public DefaultIssueBuilder reporter(@Nullable String s) { - this.reporter = s; return this; } @@ -157,7 +159,6 @@ public class DefaultIssueBuilder implements Issuable.IssueBuilder { issue.setManualSeverity(false); issue.setGap(effortToFix); issue.setLine(line); - issue.setReporter(reporter); issue.setAssignee(assignee); issue.setAttributes(attributes); issue.setResolution(null); -- cgit v1.2.3