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