import org.sonar.api.ServerComponent;
import org.sonar.api.task.TaskComponent;
+import javax.annotation.Nullable;
import java.util.Date;
/**
return lockedAt;
}
- public Semaphore setLockedAt(Date lockedAt) {
- this.lockedAt = (Date) lockedAt.clone();
+ public Semaphore setLockedAt(@Nullable Date lockedAt) {
+ this.lockedAt = lockedAt;
return this;
}
return createdAt;
}
- public Semaphore setCreatedAt(Date createdAt) {
- this.createdAt = (Date) createdAt.clone();
+ public Semaphore setCreatedAt(@Nullable Date createdAt) {
+ this.createdAt = createdAt;
return this;
}
return updatedAt;
}
- public Semaphore setUpdatedAt(Date updatedAt) {
- this.updatedAt = (Date) updatedAt.clone();
+ public Semaphore setUpdatedAt(@Nullable Date updatedAt) {
+ this.updatedAt = updatedAt;
return this;
}