Skip to content

Commit 4ddc447

Browse files
author
Yegor Bugayenko
committed
#1 polished
1 parent e7dc8d5 commit 4ddc447

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/main/java/co/stateful/RtLock.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -51,14 +51,14 @@
5151
*/
5252
@Immutable
5353
@Loggable(Loggable.DEBUG)
54-
@ToString(of = "lock", includeFieldNames = false)
55-
@EqualsAndHashCode(of = { "lock", "lrequest", "urequest" })
54+
@ToString(of = "lck", includeFieldNames = false)
55+
@EqualsAndHashCode(of = { "lck", "lrequest", "urequest" })
5656
final class RtLock implements Lock {
5757

5858
/**
5959
* Its name.
6060
*/
61-
private final transient String lock;
61+
private final transient String lck;
6262

6363
/**
6464
* Lock request.
@@ -77,14 +77,14 @@ final class RtLock implements Lock {
7777
* @param ureq Unlock request
7878
*/
7979
RtLock(final String name, final Request lreq, final Request ureq) {
80-
this.lock = name;
80+
this.lck = name;
8181
this.lrequest = lreq;
8282
this.urequest = ureq;
8383
}
8484

8585
@Override
8686
public String name() {
87-
return this.lock;
87+
return this.lck;
8888
}
8989

9090
@Override
@@ -116,7 +116,7 @@ public boolean lock(final String label) throws IOException {
116116
.status() == HttpURLConnection.HTTP_SEE_OTHER;
117117
Logger.info(
118118
this, "lock of \"%s\" is %s in %[ms]s",
119-
this.lock, Boolean.toString(locked),
119+
this.lck, Boolean.toString(locked),
120120
System.currentTimeMillis() - start
121121
);
122122
return locked;
@@ -131,7 +131,7 @@ public boolean unlock(final String label) throws IOException {
131131
.status() == HttpURLConnection.HTTP_SEE_OTHER;
132132
Logger.info(
133133
this, "unlocked \"%s\" in %[ms]s: %B",
134-
this.lock, System.currentTimeMillis() - start, unlocked
134+
this.lck, System.currentTimeMillis() - start, unlocked
135135
);
136136
return unlocked;
137137
}

0 commit comments

Comments
 (0)