aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sonar-core/src/main/java/org/sonar/core/persistence/SemaphoreDao.java6
-rw-r--r--sonar-plugin-api/src/main/java/org/sonar/api/utils/Semaphores.java10
2 files changed, 8 insertions, 8 deletions
diff --git a/sonar-core/src/main/java/org/sonar/core/persistence/SemaphoreDao.java b/sonar-core/src/main/java/org/sonar/core/persistence/SemaphoreDao.java
index 9d1d4a13c36..7e18a8e87c1 100644
--- a/sonar-core/src/main/java/org/sonar/core/persistence/SemaphoreDao.java
+++ b/sonar-core/src/main/java/org/sonar/core/persistence/SemaphoreDao.java
@@ -129,7 +129,7 @@ public class SemaphoreDao {
Semaphores.Semaphore semaphore = new Semaphores.Semaphore()
.setName(dto.getName())
.setLocked(acquired)
- .setLocketAt(dto.getLockedAt())
+ .setLockedAt(dto.getLockedAt())
.setCreatedAt(dto.getCreatedAt())
.setUpdatedAt(dto.getUpdatedAt());
if (!acquired) {
@@ -141,8 +141,8 @@ public class SemaphoreDao {
private long getDurationSinceLocked(SemaphoreDto semaphore, SqlSession session) {
long now = now(session).getTime();
semaphore.getLockedAt();
- long locketAt = semaphore.getLockedAt().getTime();
- return now - locketAt;
+ long lockedAt = semaphore.getLockedAt().getTime();
+ return now - lockedAt;
}
protected SemaphoreDto selectSemaphore(String name, SqlSession session) {
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 9902b1d4cd0..c02ed25dd3d 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
@@ -67,7 +67,7 @@ public interface Semaphores extends TaskComponent, ServerComponent {
private String name;
private boolean locked;
- private Date locketAt;
+ private Date lockedAt;
private Date createdAt;
private Date updatedAt;
private Long durationSinceLocked;
@@ -90,12 +90,12 @@ public interface Semaphores extends TaskComponent, ServerComponent {
return this;
}
- public Date getLocketAt() {
- return locketAt;
+ public Date getLockedAt() {
+ return lockedAt;
}
- public Semaphore setLocketAt(Date locketAt) {
- this.locketAt = locketAt;
+ public Semaphore setLockedAt(Date lockedAt) {
+ this.lockedAt = lockedAt;
return this;
}