diff options
Diffstat (limited to 'sonar-core/src/main')
-rw-r--r-- | sonar-core/src/main/java/org/sonar/core/issue/DefaultIssue.java | 12 | ||||
-rw-r--r-- | sonar-core/src/main/java/org/sonar/core/issue/DefaultIssueBuilder.java | 7 |
2 files changed, 9 insertions, 10 deletions
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<String, String> 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<String, String> 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); |