diff options
author | Julien Lancelot <julien.lancelot@gmail.com> | 2013-06-05 11:21:49 +0200 |
---|---|---|
committer | Julien Lancelot <julien.lancelot@gmail.com> | 2013-06-05 11:21:49 +0200 |
commit | a6988a040cc1b2ac1dda045559d33a20a2a3f9df (patch) | |
tree | 485ba5b2823842bd959a935d5627e624e5c5aee8 /sonar-core | |
parent | c57dc71e4d5106a94cb9fba6b55dcaa665a63547 (diff) | |
download | sonarqube-a6988a040cc1b2ac1dda045559d33a20a2a3f9df.tar.gz sonarqube-a6988a040cc1b2ac1dda045559d33a20a2a3f9df.zip |
Fix quality flaws
Diffstat (limited to 'sonar-core')
-rw-r--r-- | sonar-core/src/main/java/org/sonar/core/issue/db/IssueDto.java | 5 | ||||
-rw-r--r-- | sonar-core/src/main/java/org/sonar/core/user/UserDao.java | 2 |
2 files changed, 4 insertions, 3 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 b0d87a27c9b..232e1dbbc4c 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 @@ -29,6 +29,7 @@ import org.sonar.api.utils.KeyValueFormat; import javax.annotation.CheckForNull; import javax.annotation.Nullable; + import java.io.Serializable; import java.util.Date; @@ -366,7 +367,7 @@ public final class IssueDto implements Serializable { .setComponentId(componentId) .setRootComponentId(rootComponentId) .setActionPlanKey(issue.actionPlanKey()) - .setIssueAttributes(issue.attributes() != null ? KeyValueFormat.format(issue.attributes()) : "") + .setIssueAttributes(KeyValueFormat.format(issue.attributes())) .setAuthorLogin(issue.authorLogin()) .setIssueCreationDate(issue.creationDate()) .setIssueCloseDate(issue.closeDate()) @@ -391,7 +392,7 @@ public final class IssueDto implements Serializable { .setReporter(issue.reporter()) .setAssignee(issue.assignee()) .setActionPlanKey(issue.actionPlanKey()) - .setIssueAttributes(issue.attributes() != null ? KeyValueFormat.format(issue.attributes()) : "") + .setIssueAttributes(KeyValueFormat.format(issue.attributes())) .setAuthorLogin(issue.authorLogin()) .setIssueCreationDate(issue.creationDate()) .setIssueCloseDate(issue.closeDate()) diff --git a/sonar-core/src/main/java/org/sonar/core/user/UserDao.java b/sonar-core/src/main/java/org/sonar/core/user/UserDao.java index 32b3978e6b0..42a28e35a5d 100644 --- a/sonar-core/src/main/java/org/sonar/core/user/UserDao.java +++ b/sonar-core/src/main/java/org/sonar/core/user/UserDao.java @@ -25,7 +25,7 @@ import org.sonar.api.user.UserQuery; import org.sonar.core.persistence.MyBatis; import javax.annotation.CheckForNull; -import java.util.Collection; + import java.util.List; /** |