diff options
author | Simon Brandhof <simon.brandhof@sonarsource.com> | 2015-09-27 15:05:37 +0200 |
---|---|---|
committer | Simon Brandhof <simon.brandhof@sonarsource.com> | 2015-09-27 15:30:48 +0200 |
commit | 362056f315504b2c06d41e915dd6b700109d4e61 (patch) | |
tree | 16391026587719d5fecf1598c0208a8ef41b7107 /sonar-core | |
parent | c73d89111568b90347a4d206e25707e460bbe0ad (diff) | |
download | sonarqube-362056f315504b2c06d41e915dd6b700109d4e61.tar.gz sonarqube-362056f315504b2c06d41e915dd6b700109d4e61.zip |
Add some preconditions to IssueDto
Diffstat (limited to 'sonar-core')
-rw-r--r-- | sonar-core/src/main/java/org/sonar/core/issue/DefaultIssue.java | 4 | ||||
-rw-r--r-- | sonar-core/src/main/java/org/sonar/core/issue/IssueUpdater.java | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/sonar-core/src/main/java/org/sonar/core/issue/DefaultIssue.java b/sonar-core/src/main/java/org/sonar/core/issue/DefaultIssue.java index 1b405d50294..46ac2fbad12 100644 --- a/sonar-core/src/main/java/org/sonar/core/issue/DefaultIssue.java +++ b/sonar-core/src/main/java/org/sonar/core/issue/DefaultIssue.java @@ -134,8 +134,8 @@ public class DefaultIssue implements Issue, Trackable, org.sonar.api.ce.measure. return componentUuid; } - public DefaultIssue setComponentUuid(@CheckForNull String componentUuid) { - this.componentUuid = componentUuid; + public DefaultIssue setComponentUuid(@Nullable String s) { + this.componentUuid = s; return this; } diff --git a/sonar-core/src/main/java/org/sonar/core/issue/IssueUpdater.java b/sonar-core/src/main/java/org/sonar/core/issue/IssueUpdater.java index e9884c6539a..851523cb5be 100644 --- a/sonar-core/src/main/java/org/sonar/core/issue/IssueUpdater.java +++ b/sonar-core/src/main/java/org/sonar/core/issue/IssueUpdater.java @@ -275,7 +275,7 @@ public class IssueUpdater { Set<String> newTags = Sets.newHashSet(Collections2.transform( Collections2.filter(tags, new Predicate<String>() { @Override - public boolean apply(String tag) { + public boolean apply(@Nullable String tag) { return tag != null && !tag.isEmpty(); } }), new Function<String, String>() { |