Minor: reorder methods and constructors
This commit is contained in:
@@ -42,6 +42,11 @@ public class LockBasedStorageManager implements StorageManager {
|
|||||||
protected final Lock lock;
|
protected final Lock lock;
|
||||||
private final String debugText;
|
private final String debugText;
|
||||||
|
|
||||||
|
private LockBasedStorageManager(@NotNull String debugText, @NotNull Lock lock) {
|
||||||
|
this.lock = lock;
|
||||||
|
this.debugText = debugText;
|
||||||
|
}
|
||||||
|
|
||||||
public LockBasedStorageManager() {
|
public LockBasedStorageManager() {
|
||||||
this(getPointOfConstruction(), new ReentrantLock());
|
this(getPointOfConstruction(), new ReentrantLock());
|
||||||
}
|
}
|
||||||
@@ -53,11 +58,6 @@ public class LockBasedStorageManager implements StorageManager {
|
|||||||
return trace[3].toString();
|
return trace[3].toString();
|
||||||
}
|
}
|
||||||
|
|
||||||
private LockBasedStorageManager(@NotNull String debugText, @NotNull Lock lock) {
|
|
||||||
this.lock = lock;
|
|
||||||
this.debugText = debugText;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
return getClass().getSimpleName() + "@" + Integer.toHexString(hashCode()) + " (" + debugText + ')';
|
return getClass().getSimpleName() + "@" + Integer.toHexString(hashCode()) + " (" + debugText + ')';
|
||||||
|
|||||||
Reference in New Issue
Block a user