aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-plugin-api-impl/src/main
diff options
context:
space:
mode:
authorDuarte Meneses <duarte.meneses@sonarsource.com>2023-04-26 10:59:09 -0500
committersonartech <sonartech@sonarsource.com>2023-04-28 20:02:57 +0000
commitdb1a20f20ebcee549d47d0eb59b3b8882f58efef (patch)
tree6cdd75eaa9760dd5747f459cd44e5ebf7c5c8230 /sonar-plugin-api-impl/src/main
parenta8b0bf6f8eafc033ce0a1f97609a25f23a95b0bc (diff)
downloadsonarqube-db1a20f20ebcee549d47d0eb59b3b8882f58efef.tar.gz
sonarqube-db1a20f20ebcee549d47d0eb59b3b8882f58efef.zip
Revert "SONAR-19050 Upgrade sonar-plugin-api to v9.16.0.549"
This reverts commit 27f1179c0cb7e4add8cb8c9f49d5864da4681c66.
Diffstat (limited to 'sonar-plugin-api-impl/src/main')
-rw-r--r--sonar-plugin-api-impl/src/main/java/org/sonar/api/batch/sensor/issue/internal/DefaultExternalIssue.java8
-rw-r--r--sonar-plugin-api-impl/src/main/java/org/sonar/api/batch/sensor/rule/internal/DefaultAdHocRule.java8
2 files changed, 8 insertions, 8 deletions
diff --git a/sonar-plugin-api-impl/src/main/java/org/sonar/api/batch/sensor/issue/internal/DefaultExternalIssue.java b/sonar-plugin-api-impl/src/main/java/org/sonar/api/batch/sensor/issue/internal/DefaultExternalIssue.java
index 2cc4937bc63..d2e606bee1a 100644
--- a/sonar-plugin-api-impl/src/main/java/org/sonar/api/batch/sensor/issue/internal/DefaultExternalIssue.java
+++ b/sonar-plugin-api-impl/src/main/java/org/sonar/api/batch/sensor/issue/internal/DefaultExternalIssue.java
@@ -26,8 +26,8 @@ import org.sonar.api.batch.rule.Severity;
import org.sonar.api.batch.sensor.internal.SensorStorage;
import org.sonar.api.batch.sensor.issue.ExternalIssue;
import org.sonar.api.batch.sensor.issue.NewExternalIssue;
-import org.sonar.api.code.CodeCharacteristic;
import org.sonar.api.rule.RuleKey;
+import org.sonar.api.rules.RuleCharacteristic;
import org.sonar.api.rules.RuleType;
import static java.lang.String.format;
@@ -39,7 +39,7 @@ public class DefaultExternalIssue extends AbstractDefaultIssue<DefaultExternalIs
private Long effort;
private Severity severity;
private RuleType type;
- private CodeCharacteristic characteristic;
+ private RuleCharacteristic characteristic;
private String engineId;
private String ruleId;
@@ -101,7 +101,7 @@ public class DefaultExternalIssue extends AbstractDefaultIssue<DefaultExternalIs
}
@CheckForNull
- public CodeCharacteristic characteristic() {
+ public RuleCharacteristic characteristic() {
return characteristic;
}
@@ -133,7 +133,7 @@ public class DefaultExternalIssue extends AbstractDefaultIssue<DefaultExternalIs
}
@Override
- public DefaultExternalIssue characteristic(CodeCharacteristic characteristic) {
+ public DefaultExternalIssue characteristic(RuleCharacteristic characteristic) {
this.characteristic = characteristic;
return this;
}
diff --git a/sonar-plugin-api-impl/src/main/java/org/sonar/api/batch/sensor/rule/internal/DefaultAdHocRule.java b/sonar-plugin-api-impl/src/main/java/org/sonar/api/batch/sensor/rule/internal/DefaultAdHocRule.java
index d9027741d44..aefa37f67e7 100644
--- a/sonar-plugin-api-impl/src/main/java/org/sonar/api/batch/sensor/rule/internal/DefaultAdHocRule.java
+++ b/sonar-plugin-api-impl/src/main/java/org/sonar/api/batch/sensor/rule/internal/DefaultAdHocRule.java
@@ -26,7 +26,7 @@ import org.sonar.api.batch.sensor.internal.DefaultStorable;
import org.sonar.api.batch.sensor.internal.SensorStorage;
import org.sonar.api.batch.sensor.rule.AdHocRule;
import org.sonar.api.batch.sensor.rule.NewAdHocRule;
-import org.sonar.api.code.CodeCharacteristic;
+import org.sonar.api.rules.RuleCharacteristic;
import org.sonar.api.rules.RuleType;
import static org.apache.commons.lang.StringUtils.isNotBlank;
@@ -36,7 +36,7 @@ public class DefaultAdHocRule extends DefaultStorable implements AdHocRule, NewA
private Severity severity;
private RuleType type;
- private CodeCharacteristic characteristic;
+ private RuleCharacteristic characteristic;
private String name;
private String description;
private String engineId;
@@ -99,7 +99,7 @@ public class DefaultAdHocRule extends DefaultStorable implements AdHocRule, NewA
@CheckForNull
@Override
- public CodeCharacteristic characteristic() {
+ public RuleCharacteristic characteristic() {
return characteristic;
}
@@ -134,7 +134,7 @@ public class DefaultAdHocRule extends DefaultStorable implements AdHocRule, NewA
}
@Override
- public DefaultAdHocRule characteristic(CodeCharacteristic characteristic) {
+ public DefaultAdHocRule characteristic(RuleCharacteristic characteristic) {
this.characteristic = characteristic;
return this;
}