diff options
author | Julien Lancelot <julien.lancelot@sonarsource.com> | 2014-10-24 10:03:02 +0200 |
---|---|---|
committer | Julien Lancelot <julien.lancelot@sonarsource.com> | 2014-10-24 10:03:12 +0200 |
commit | c510c61e51ddc897e2ffc245055919b7167ebd59 (patch) | |
tree | 3ce7c75db80644917a0371590acf4774b808660b /sonar-plugin-api | |
parent | ed2c0dedf6e75842ce4bf993f384761b95162ec2 (diff) | |
download | sonarqube-c510c61e51ddc897e2ffc245055919b7167ebd59.tar.gz sonarqube-c510c61e51ddc897e2ffc245055919b7167ebd59.zip |
Fix quality flaws
Diffstat (limited to 'sonar-plugin-api')
-rw-r--r-- | sonar-plugin-api/src/main/java/org/sonar/api/issue/internal/DefaultIssue.java | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/issue/internal/DefaultIssue.java b/sonar-plugin-api/src/main/java/org/sonar/api/issue/internal/DefaultIssue.java index 4e578681754..48199bb19d0 100644 --- a/sonar-plugin-api/src/main/java/org/sonar/api/issue/internal/DefaultIssue.java +++ b/sonar-plugin-api/src/main/java/org/sonar/api/issue/internal/DefaultIssue.java @@ -121,12 +121,16 @@ public class DefaultIssue implements Issue { return this; } + /** + * Can be null on Views or Devs + */ @Override + @CheckForNull public String componentUuid() { return componentUuid; } - public DefaultIssue setComponentUuid(String componentUuid) { + public DefaultIssue setComponentUuid(@CheckForNull String componentUuid) { this.componentUuid = componentUuid; return this; } @@ -174,12 +178,16 @@ public class DefaultIssue implements Issue { return this; } + /** + * Can be null on Views or Devs + */ @Override + @CheckForNull public String projectUuid() { return projectUuid; } - public DefaultIssue setProjectUuid(String projectUuid) { + public DefaultIssue setProjectUuid(@Nullable String projectUuid) { this.projectUuid = projectUuid; return this; } |