diff options
author | Duarte Meneses <duarte.meneses@sonarsource.com> | 2018-04-13 09:12:54 +0200 |
---|---|---|
committer | SonarTech <sonartech@sonarsource.com> | 2018-04-26 20:20:50 +0200 |
commit | 0672145e58ce28f8fb475bc53f095f16dfaeeb1d (patch) | |
tree | 3d520cdc9e39becccf9f6a33c1d1b7843aec11f6 /sonar-plugin-api | |
parent | 0e3a5a4e118e66bf4d2d17a1a745859c4351225a (diff) | |
download | sonarqube-0672145e58ce28f8fb475bc53f095f16dfaeeb1d.tar.gz sonarqube-0672145e58ce28f8fb475bc53f095f16dfaeeb1d.zip |
SONAR-10544 Fix tests handling of external rules
Diffstat (limited to 'sonar-plugin-api')
3 files changed, 4 insertions, 3 deletions
diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/batch/sensor/issue/internal/AbstractDefaultIssue.java b/sonar-plugin-api/src/main/java/org/sonar/api/batch/sensor/issue/internal/AbstractDefaultIssue.java index 694942984c2..c845eb1ab7f 100644 --- a/sonar-plugin-api/src/main/java/org/sonar/api/batch/sensor/issue/internal/AbstractDefaultIssue.java +++ b/sonar-plugin-api/src/main/java/org/sonar/api/batch/sensor/issue/internal/AbstractDefaultIssue.java @@ -23,6 +23,7 @@ import com.google.common.base.Preconditions; import java.util.ArrayList; import java.util.Arrays; import java.util.List; +import javax.annotation.Nullable; import org.sonar.api.batch.sensor.internal.DefaultStorable; import org.sonar.api.batch.sensor.internal.SensorStorage; import org.sonar.api.batch.sensor.issue.IssueLocation; @@ -43,7 +44,7 @@ public abstract class AbstractDefaultIssue<T extends AbstractDefaultIssue> exte super(null); } - public AbstractDefaultIssue(SensorStorage storage) { + public AbstractDefaultIssue(@Nullable SensorStorage storage) { super(storage); } diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/batch/sensor/issue/internal/DefaultExternalIssue.java b/sonar-plugin-api/src/main/java/org/sonar/api/batch/sensor/issue/internal/DefaultExternalIssue.java index 6bbf40078e7..6ffcb5055e8 100644 --- a/sonar-plugin-api/src/main/java/org/sonar/api/batch/sensor/issue/internal/DefaultExternalIssue.java +++ b/sonar-plugin-api/src/main/java/org/sonar/api/batch/sensor/issue/internal/DefaultExternalIssue.java @@ -42,7 +42,7 @@ public class DefaultExternalIssue extends AbstractDefaultIssue<DefaultExternalIs super(null); } - public DefaultExternalIssue(SensorStorage storage) { + public DefaultExternalIssue(@Nullable SensorStorage storage) { super(storage); } diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/batch/sensor/issue/internal/DefaultIssue.java b/sonar-plugin-api/src/main/java/org/sonar/api/batch/sensor/issue/internal/DefaultIssue.java index 30095731169..19f53a68af1 100644 --- a/sonar-plugin-api/src/main/java/org/sonar/api/batch/sensor/issue/internal/DefaultIssue.java +++ b/sonar-plugin-api/src/main/java/org/sonar/api/batch/sensor/issue/internal/DefaultIssue.java @@ -39,7 +39,7 @@ public class DefaultIssue extends AbstractDefaultIssue<DefaultIssue> implements super(null); } - public DefaultIssue(SensorStorage storage) { + public DefaultIssue(@Nullable SensorStorage storage) { super(storage); } |