diff options
author | Julien HENRY <julien.henry@sonarsource.com> | 2019-04-08 17:41:06 +0200 |
---|---|---|
committer | SonarTech <sonartech@sonarsource.com> | 2019-04-23 20:21:08 +0200 |
commit | 0d17e454b4a6adbb1f7ff38293a0966d0306c3bd (patch) | |
tree | 6f6fab5d0a2fbdde3258fbbacca1055ac5940055 /server/sonar-db-dao/src/main/java/org/sonar/db/issue | |
parent | afbb758004d62375c5d91c1180ad6050e8f4e253 (diff) | |
download | sonarqube-0d17e454b4a6adbb1f7ff38293a0966d0306c3bd.tar.gz sonarqube-0d17e454b4a6adbb1f7ff38293a0966d0306c3bd.zip |
SONAR-11859 Fix issue changelog
Diffstat (limited to 'server/sonar-db-dao/src/main/java/org/sonar/db/issue')
-rw-r--r-- | server/sonar-db-dao/src/main/java/org/sonar/db/issue/ShortBranchIssueDto.java | 24 |
1 files changed, 19 insertions, 5 deletions
diff --git a/server/sonar-db-dao/src/main/java/org/sonar/db/issue/ShortBranchIssueDto.java b/server/sonar-db-dao/src/main/java/org/sonar/db/issue/ShortBranchIssueDto.java index 7876c944ab3..bdb34339ab8 100644 --- a/server/sonar-db-dao/src/main/java/org/sonar/db/issue/ShortBranchIssueDto.java +++ b/server/sonar-db-dao/src/main/java/org/sonar/db/issue/ShortBranchIssueDto.java @@ -25,6 +25,7 @@ import javax.annotation.Nullable; import org.apache.commons.lang.builder.ToStringBuilder; import org.apache.commons.lang.builder.ToStringStyle; import org.sonar.api.rule.RuleKey; +import org.sonar.db.component.KeyType; public final class ShortBranchIssueDto implements Serializable { @@ -38,7 +39,8 @@ public final class ShortBranchIssueDto implements Serializable { // joins private String ruleKey; private String ruleRepo; - private String branchName; + private String branchKey; + private KeyType keyType; public String getKey() { return kee; @@ -69,12 +71,24 @@ public final class ShortBranchIssueDto implements Serializable { return this; } - public String getBranchName() { - return branchName; + /** + * Branch name for SLB, PR key for PR + */ + public String getBranchKey() { + return branchKey; } - public ShortBranchIssueDto setBranchName(String s) { - this.branchName = s; + public ShortBranchIssueDto setBranchKey(String s) { + this.branchKey = s; + return this; + } + + public KeyType getKeyType() { + return keyType; + } + + public ShortBranchIssueDto setKeyType(KeyType s) { + this.keyType = s; return this; } |