aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-plugin-api/src
diff options
context:
space:
mode:
authorJean-Baptiste Vilain <jean-baptiste.vilain@sonarsource.com>2013-06-05 09:51:44 +0200
committerJean-Baptiste Vilain <jean-baptiste.vilain@sonarsource.com>2013-06-05 09:51:44 +0200
commit9337b5d4cf54a6e3601a63022d26f8e27c7110a5 (patch)
tree5d3ba214278c6904e9adfb9c741f1a41a8ae10e9 /sonar-plugin-api/src
parentf98724f7fce3ad44d7ade923f56c05a15ebdd1a3 (diff)
downloadsonarqube-9337b5d4cf54a6e3601a63022d26f8e27c7110a5.tar.gz
sonarqube-9337b5d4cf54a6e3601a63022d26f8e27c7110a5.zip
Fixed quality issues
Diffstat (limited to 'sonar-plugin-api/src')
-rw-r--r--sonar-plugin-api/src/main/java/org/sonar/api/utils/Semaphores.java13
1 files changed, 7 insertions, 6 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 24ead0dc142..f3b7500521e 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
@@ -22,6 +22,7 @@ package org.sonar.api.utils;
import org.sonar.api.ServerComponent;
import org.sonar.api.task.TaskComponent;
+import javax.annotation.Nullable;
import java.util.Date;
/**
@@ -94,8 +95,8 @@ public interface Semaphores extends TaskComponent, ServerComponent {
return lockedAt;
}
- public Semaphore setLockedAt(Date lockedAt) {
- this.lockedAt = (Date) lockedAt.clone();
+ public Semaphore setLockedAt(@Nullable Date lockedAt) {
+ this.lockedAt = lockedAt;
return this;
}
@@ -103,8 +104,8 @@ public interface Semaphores extends TaskComponent, ServerComponent {
return createdAt;
}
- public Semaphore setCreatedAt(Date createdAt) {
- this.createdAt = (Date) createdAt.clone();
+ public Semaphore setCreatedAt(@Nullable Date createdAt) {
+ this.createdAt = createdAt;
return this;
}
@@ -112,8 +113,8 @@ public interface Semaphores extends TaskComponent, ServerComponent {
return updatedAt;
}
- public Semaphore setUpdatedAt(Date updatedAt) {
- this.updatedAt = (Date) updatedAt.clone();
+ public Semaphore setUpdatedAt(@Nullable Date updatedAt) {
+ this.updatedAt = updatedAt;
return this;
}