diff options
author | Pierre <pierre.guillot@sonarsource.com> | 2022-02-22 16:00:47 +0100 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2022-02-24 20:02:52 +0000 |
commit | 1457934dc1e472cfd7d22fe098ee8bc2a1141511 (patch) | |
tree | 3ba8bba84152ce95d1d46bddd78354c35a50ea99 /server/sonar-db-dao/src/main/java/org/sonar | |
parent | 952c70ec25d416f7f660677ca260e41864a4ccbd (diff) | |
download | sonarqube-1457934dc1e472cfd7d22fe098ee8bc2a1141511.tar.gz sonarqube-1457934dc1e472cfd7d22fe098ee8bc2a1141511.zip |
SONAR-7496 drop unused columns on Issues table
Diffstat (limited to 'server/sonar-db-dao/src/main/java/org/sonar')
-rw-r--r-- | server/sonar-db-dao/src/main/java/org/sonar/db/issue/IssueDto.java | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/server/sonar-db-dao/src/main/java/org/sonar/db/issue/IssueDto.java b/server/sonar-db-dao/src/main/java/org/sonar/db/issue/IssueDto.java index 1bc4e5f0b60..a4a97c4c7de 100644 --- a/server/sonar-db-dao/src/main/java/org/sonar/db/issue/IssueDto.java +++ b/server/sonar-db-dao/src/main/java/org/sonar/db/issue/IssueDto.java @@ -20,7 +20,6 @@ package org.sonar.db.issue; import com.google.common.base.Joiner; -import com.google.common.base.MoreObjects; import com.google.common.base.Preconditions; import com.google.common.base.Splitter; import com.google.common.collect.ImmutableSet; @@ -37,7 +36,6 @@ import org.apache.commons.lang.builder.ToStringStyle; import org.sonar.api.rule.RuleKey; import org.sonar.api.rules.RuleType; import org.sonar.api.utils.Duration; -import org.sonar.api.utils.KeyValueFormat; import org.sonar.core.issue.DefaultIssue; import org.sonar.db.component.ComponentDto; import org.sonar.db.protobuf.DbIssues; @@ -71,7 +69,6 @@ public final class IssueDto implements Serializable { private String assigneeUuid; private String assigneeLogin; private String authorLogin; - private String issueAttributes; private String securityStandards; private byte[] locations; private long createdAt; @@ -135,7 +132,6 @@ public final class IssueDto implements Serializable { .setModuleUuidPath(issue.moduleUuidPath()) .setProjectUuid(issue.projectUuid()) .setProjectKey(issue.projectKey()) - .setIssueAttributes(KeyValueFormat.format(issue.attributes())) .setAuthorLogin(issue.authorLogin()) .setIssueCreationDate(issue.creationDate()) .setIssueCloseDate(issue.closeDate()) @@ -175,7 +171,6 @@ public final class IssueDto implements Serializable { .setChecksum(issue.checksum()) .setManualSeverity(issue.manualSeverity()) .setAssigneeUuid(issue.assignee()) - .setIssueAttributes(KeyValueFormat.format(issue.attributes())) .setAuthorLogin(issue.authorLogin()) .setRuleKey(issue.ruleKey().repository(), issue.ruleKey().rule()) .setExternal(issue.isFromExternalRuleEngine()) @@ -365,17 +360,6 @@ public final class IssueDto implements Serializable { return this; } - @CheckForNull - public String getIssueAttributes() { - return issueAttributes; - } - - public IssueDto setIssueAttributes(@Nullable String s) { - checkArgument(s == null || s.length() <= 4000, "Value is too long for issue attributes: %s", s); - this.issueAttributes = s; - return this; - } - public IssueDto setSecurityStandards(@Nullable String s) { this.securityStandards = s; return this; @@ -751,7 +735,6 @@ public final class IssueDto implements Serializable { issue.setChecksum(checksum); issue.setSeverity(severity); issue.setAssigneeUuid(assigneeUuid); - issue.setAttributes(KeyValueFormat.parse(MoreObjects.firstNonNull(issueAttributes, ""))); issue.setComponentKey(componentKey); issue.setComponentUuid(componentUuid); issue.setModuleUuid(moduleUuid); |