diff options
author | Julien HENRY <julien.henry@sonarsource.com> | 2015-08-05 10:34:26 +0200 |
---|---|---|
committer | Julien HENRY <julien.henry@sonarsource.com> | 2015-08-05 13:52:59 +0200 |
commit | e2daa5befa8916b585567a942141edcb7eff9a19 (patch) | |
tree | 379a210d60f42922461a33e065f112ba710655d9 /sonar-core | |
parent | 92ab7df5f6d58a9711cdc00dbaafd0648b22e940 (diff) | |
download | sonarqube-e2daa5befa8916b585567a942141edcb7eff9a19.tar.gz sonarqube-e2daa5befa8916b585567a942141edcb7eff9a19.zip |
Fix some quality flaws
Diffstat (limited to 'sonar-core')
-rw-r--r-- | sonar-core/src/main/java/org/sonar/core/issue/DefaultIssue.java | 6 |
1 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 f16e8d3c2e2..9f3fcb16170 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 @@ -342,7 +342,7 @@ public class DefaultIssue implements Issue, Trackable { public DefaultIssue setCreationDate(Date d) { // d is not marked as Nullable but we still allow null parameter for unit testing. - this.creationDate = (d != null ? DateUtils.truncate(d, Calendar.SECOND) : null); + this.creationDate = d != null ? DateUtils.truncate(d, Calendar.SECOND) : null; return this; } @@ -353,7 +353,7 @@ public class DefaultIssue implements Issue, Trackable { } public DefaultIssue setUpdateDate(@Nullable Date d) { - this.updateDate = (d != null ? DateUtils.truncate(d, Calendar.SECOND) : null); + this.updateDate = d != null ? DateUtils.truncate(d, Calendar.SECOND) : null; return this; } @@ -364,7 +364,7 @@ public class DefaultIssue implements Issue, Trackable { } public DefaultIssue setCloseDate(@Nullable Date d) { - this.closeDate = (d != null ? DateUtils.truncate(d, Calendar.SECOND) : null); + this.closeDate = d != null ? DateUtils.truncate(d, Calendar.SECOND) : null; return this; } |