diff options
author | Teryk Bellahsene <teryk.bellahsene@sonarsource.com> | 2015-02-09 18:05:17 +0100 |
---|---|---|
committer | Teryk Bellahsene <teryk.bellahsene@sonarsource.com> | 2015-02-10 08:42:43 +0100 |
commit | e1104eb967ad973c40ac2ae7f50732aaef0cc734 (patch) | |
tree | e4d2d0267dec9f89771e5021a1e7842bfcd05aa6 /sonar-core | |
parent | 001911d6151b9188e2e64b81ff19e9461391855f (diff) | |
download | sonarqube-e1104eb967ad973c40ac2ae7f50732aaef0cc734.tar.gz sonarqube-e1104eb967ad973c40ac2ae7f50732aaef0cc734.zip |
fix quality flaws
Diffstat (limited to 'sonar-core')
-rw-r--r-- | sonar-core/src/main/java/org/sonar/core/purge/PurgeableSnapshotDto.java | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sonar-core/src/main/java/org/sonar/core/purge/PurgeableSnapshotDto.java b/sonar-core/src/main/java/org/sonar/core/purge/PurgeableSnapshotDto.java index 23acb6fa52a..e3a8793bc90 100644 --- a/sonar-core/src/main/java/org/sonar/core/purge/PurgeableSnapshotDto.java +++ b/sonar-core/src/main/java/org/sonar/core/purge/PurgeableSnapshotDto.java @@ -47,8 +47,7 @@ public class PurgeableSnapshotDto implements Comparable<PurgeableSnapshotDto> { } public PurgeableSnapshotDto setDate(Long aLong) { - Date date = aLong == null ? null : new Date(aLong); - this.date = date; + this.date = new Date(aLong); return this; } |