diff options
Diffstat (limited to 'sonar-plugin-api-impl')
2 files changed, 25 insertions, 0 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 2567c27bc88..42418950a25 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 @@ -19,12 +19,14 @@ */ package org.sonar.api.batch.sensor.issue.internal; +import javax.annotation.CheckForNull; import javax.annotation.Nullable; import org.sonar.api.batch.fs.internal.DefaultInputProject; 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.RuleType; @@ -97,6 +99,12 @@ public class DefaultExternalIssue extends AbstractDefaultIssue<DefaultExternalIs return type; } + @CheckForNull + @Override + public CodeCharacteristic characteristic() { + throw new IllegalStateException("Not implemented yet"); + } + @Override public NewExternalIssue engineId(String engineId) { this.engineId = engineId; @@ -130,4 +138,9 @@ public class DefaultExternalIssue extends AbstractDefaultIssue<DefaultExternalIs return this; } + @Override + public NewExternalIssue characteristic(CodeCharacteristic characteristic) { + throw new IllegalStateException("Not implemented yet"); + } + } 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 6f933c16200..52a243b8fca 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,6 +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.RuleType; import static org.apache.commons.lang.StringUtils.isNotBlank; @@ -94,6 +95,12 @@ public class DefaultAdHocRule extends DefaultStorable implements AdHocRule, NewA return type; } + @CheckForNull + @Override + public CodeCharacteristic characteristic() { + throw new IllegalStateException("Not implemented yet"); + } + @Override public DefaultAdHocRule engineId(String engineId) { this.engineId = engineId; @@ -124,4 +131,9 @@ public class DefaultAdHocRule extends DefaultStorable implements AdHocRule, NewA return this; } + @Override + public NewAdHocRule characteristic(CodeCharacteristic characteristic) { + throw new IllegalStateException("Not implemented yet"); + } + } |