diff options
author | Léo Geoffroy <leo.geoffroy@sonarsource.com> | 2023-07-28 15:57:26 +0200 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2023-08-18 20:02:47 +0000 |
commit | 04544fe143c20e8d6e76992d01cb2d2f1f3a938c (patch) | |
tree | 4b1de4c13ec0678727ebce6f7fea47f011ed55d5 /sonar-core/src | |
parent | 684955b8b6c5532413079c1bee62c2780bd255f3 (diff) | |
download | sonarqube-04544fe143c20e8d6e76992d01cb2d2f1f3a938c.tar.gz sonarqube-04544fe143c20e8d6e76992d01cb2d2f1f3a938c.zip |
SONAR-20021 Update plugin-api version
Diffstat (limited to 'sonar-core/src')
3 files changed, 4 insertions, 11 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 ef83040304e..b26765e4c71 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 @@ -40,8 +40,8 @@ import javax.annotation.Nullable; import org.apache.commons.lang.StringUtils; import org.apache.commons.lang.builder.ToStringBuilder; import org.apache.commons.lang.builder.ToStringStyle; -import org.sonar.api.code.CodeCharacteristic; import org.sonar.api.issue.Issue; +import org.sonar.api.issue.impact.SoftwareQuality; import org.sonar.api.rule.RuleKey; import org.sonar.api.rule.Severity; import org.sonar.api.rules.RuleType; @@ -148,10 +148,9 @@ public class DefaultIssue implements Issue, Trackable, org.sonar.api.ce.measure. return type; } - @CheckForNull @Override - public CodeCharacteristic characteristic() { - return null; + public Map<SoftwareQuality, org.sonar.api.issue.impact.Severity> impacts() { + return Collections.emptyMap(); } public DefaultIssue setType(RuleType type) { diff --git a/sonar-core/src/main/resources/org/sonar/l10n/core.properties b/sonar-core/src/main/resources/org/sonar/l10n/core.properties index a99857b87f4..5029b572e3a 100644 --- a/sonar-core/src/main/resources/org/sonar/l10n/core.properties +++ b/sonar-core/src/main/resources/org/sonar/l10n/core.properties @@ -2942,7 +2942,7 @@ metric.skipped_tests.short_name=Skipped metric.sqale_debt_ratio.description=Ratio of the actual technical debt compared to the estimated cost to develop the whole source code from scratch metric.sqale_debt_ratio.name=Technical Debt Ratio metric.sqale_debt_ratio.short_name=Debt Ratio -metric.sqale_index.description=Total effort (in hours) to fix all the issues on the component and therefore to comply to all the requirements. +metric.sqale_index.description=Total effort (in minutes) to fix all the issues on the component and therefore to comply to all the requirements. metric.sqale_index.name=Technical Debt metric.sqale_index.short_name=Debt metric.sqale_rating.description=A-to-E rating based on the technical debt ratio 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 39ba4662157..9d1309c7850 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 @@ -227,12 +227,6 @@ public class DefaultIssueTest { } @Test - public void characteristic_shouldReturnNull() { - DefaultIssue defaultIssue = new DefaultIssue(); - assertThat(defaultIssue.characteristic()).isNull(); - } - - @Test public void setLine_whenLineIsNegative_shouldThrowException() { int anyNegativeValue = Integer.MIN_VALUE; assertThatThrownBy(() -> issue.setLine(anyNegativeValue)) |