diff options
author | Jean-Baptiste Vilain <jean-baptiste.vilain@sonarsource.com> | 2013-06-05 09:34:56 +0200 |
---|---|---|
committer | Jean-Baptiste Vilain <jean-baptiste.vilain@sonarsource.com> | 2013-06-05 09:34:56 +0200 |
commit | a43cfbcecbc05423fe060db16a0951cb7f57f988 (patch) | |
tree | 7351e67a3aa8502517d2dce9c6afbedfce30305c /sonar-plugin-api | |
parent | 0769a646dcb9a9c651825dbf4934ef3200c3270e (diff) | |
download | sonarqube-a43cfbcecbc05423fe060db16a0951cb7f57f988.tar.gz sonarqube-a43cfbcecbc05423fe060db16a0951cb7f57f988.zip |
Fixed quality issues
Diffstat (limited to 'sonar-plugin-api')
-rw-r--r-- | sonar-plugin-api/src/main/java/org/sonar/api/utils/Semaphores.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/utils/Semaphores.java b/sonar-plugin-api/src/main/java/org/sonar/api/utils/Semaphores.java index c02ed25dd3d..24ead0dc142 100644 --- a/sonar-plugin-api/src/main/java/org/sonar/api/utils/Semaphores.java +++ b/sonar-plugin-api/src/main/java/org/sonar/api/utils/Semaphores.java @@ -95,7 +95,7 @@ public interface Semaphores extends TaskComponent, ServerComponent { } public Semaphore setLockedAt(Date lockedAt) { - this.lockedAt = lockedAt; + this.lockedAt = (Date) lockedAt.clone(); return this; } @@ -104,7 +104,7 @@ public interface Semaphores extends TaskComponent, ServerComponent { } public Semaphore setCreatedAt(Date createdAt) { - this.createdAt = createdAt; + this.createdAt = (Date) createdAt.clone(); return this; } @@ -113,7 +113,7 @@ public interface Semaphores extends TaskComponent, ServerComponent { } public Semaphore setUpdatedAt(Date updatedAt) { - this.updatedAt = updatedAt; + this.updatedAt = (Date) updatedAt.clone(); return this; } |