Minor: reorder methods and constructors

This commit is contained in:
Andrey Breslav
2014-01-29 16:32:30 +04:00
parent 836077916b
commit 5378bded1e
@@ -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 + ')';