diff options
Diffstat (limited to 'sonar-core')
3 files changed, 9 insertions, 9 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 f1339f27a69..205ac39dff8 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 @@ -73,7 +73,7 @@ public class DefaultIssue implements Issue, Trackable, org.sonar.api.ce.measure. private Duration effort; private String status; private String resolution; - private String assignee; + private String assigneeUuid; private String checksum; private Map<String, String> attributes = null; private String authorLogin = null; @@ -359,11 +359,11 @@ public class DefaultIssue implements Issue, Trackable, org.sonar.api.ce.measure. @Override @CheckForNull public String assignee() { - return assignee; + return assigneeUuid; } - public DefaultIssue setAssignee(@Nullable String s) { - this.assignee = s; + public DefaultIssue setAssigneeUuid(@Nullable String s) { + this.assigneeUuid = s; return this; } 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 7f5c4fdf806..a8df4846429 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,7 @@ public class DefaultIssueBuilder implements Issuable.IssueBuilder { private String message; private String severity; private Double effortToFix; - private String assignee; + private String assigneeUuid; private RuleType type; private Map<String, String> attributes; private boolean isFromExternalRuleEngine; @@ -124,8 +124,8 @@ public class DefaultIssueBuilder implements Issuable.IssueBuilder { return this; } - public DefaultIssueBuilder assignee(@Nullable String s) { - this.assignee = s; + public DefaultIssueBuilder assigneeUuid(@Nullable String s) { + this.assigneeUuid = s; return this; } @@ -161,7 +161,7 @@ public class DefaultIssueBuilder implements Issuable.IssueBuilder { issue.setManualSeverity(false); issue.setGap(effortToFix); issue.setLine(line); - issue.setAssignee(assignee); + issue.setAssigneeUuid(assigneeUuid); issue.setAttributes(attributes); issue.setResolution(null); issue.setStatus(Issue.STATUS_OPEN); diff --git a/sonar-core/src/test/java/org/sonar/core/issue/DefaultIssueTest.java b/sonar-core/src/test/java/org/sonar/core/issue/DefaultIssueTest.java index 6e3b97dd28c..08df314980e 100644 --- a/sonar-core/src/test/java/org/sonar/core/issue/DefaultIssueTest.java +++ b/sonar-core/src/test/java/org/sonar/core/issue/DefaultIssueTest.java @@ -53,7 +53,7 @@ public class DefaultIssueTest { .setEffort(Duration.create(28800L)) .setStatus(Issue.STATUS_CLOSED) .setResolution(Issue.RESOLUTION_FIXED) - .setAssignee("julien") + .setAssigneeUuid("julien") .setAuthorLogin("steph") .setChecksum("c7b5db46591806455cf082bb348631e8") .setNew(true) |