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-core | |
parent | ed2c0dedf6e75842ce4bf993f384761b95162ec2 (diff) | |
download | sonarqube-c510c61e51ddc897e2ffc245055919b7167ebd59.tar.gz sonarqube-c510c61e51ddc897e2ffc245055919b7167ebd59.zip |
Fix quality flaws
Diffstat (limited to 'sonar-core')
-rw-r--r-- | sonar-core/src/main/java/org/sonar/core/issue/db/IssueDto.java | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/sonar-core/src/main/java/org/sonar/core/issue/db/IssueDto.java b/sonar-core/src/main/java/org/sonar/core/issue/db/IssueDto.java index 0687f0ea082..27b24331f05 100644 --- a/sonar-core/src/main/java/org/sonar/core/issue/db/IssueDto.java +++ b/sonar-core/src/main/java/org/sonar/core/issue/db/IssueDto.java @@ -365,14 +365,20 @@ public final class IssueDto extends Dto<String> implements Serializable { return componentKey; } + /** + * Can be null on Views or Devs + */ + @CheckForNull public String getComponentUuid() { return componentUuid; } + @CheckForNull public String getModuleUuid() { return moduleUuid; } + @CheckForNull public String getModuleUuidPath() { return moduleUuidPath; } @@ -384,6 +390,10 @@ public final class IssueDto extends Dto<String> implements Serializable { return projectKey; } + /** + * Can be null on Views or Devs + */ + @CheckForNull public String getProjectUuid() { return projectUuid; } @@ -434,7 +444,7 @@ public final class IssueDto extends Dto<String> implements Serializable { * * Please use {@link #setComponent(org.sonar.core.component.ComponentDto)} instead */ - public IssueDto setComponentUuid(String componentUuid) { + public IssueDto setComponentUuid(@Nullable String componentUuid) { this.componentUuid = componentUuid; return this; } @@ -444,7 +454,7 @@ public final class IssueDto extends Dto<String> implements Serializable { * * Please use {@link #setComponent(org.sonar.core.component.ComponentDto)} instead */ - public IssueDto setModuleUuid(String moduleUuid) { + public IssueDto setModuleUuid(@Nullable String moduleUuid) { this.moduleUuid = moduleUuid; return this; } @@ -454,7 +464,7 @@ public final class IssueDto extends Dto<String> implements Serializable { * * Please use {@link #setComponent(org.sonar.core.component.ComponentDto)} instead */ - public IssueDto setModuleUuidPath(String moduleUuidPath) { + public IssueDto setModuleUuidPath(@Nullable String moduleUuidPath) { this.moduleUuidPath = moduleUuidPath; return this; } @@ -474,7 +484,7 @@ public final class IssueDto extends Dto<String> implements Serializable { * * Please use {@link #setProject(org.sonar.core.component.ComponentDto)} instead */ - public IssueDto setProjectUuid(String projectUuid) { + public IssueDto setProjectUuid(@Nullable String projectUuid) { this.projectUuid = projectUuid; return this; } |