Remove logging in LockBasedStorageManager creation as it all the same useless
HEAD - 3 leads to "org.jetbrains.kotlin.storage.LockBasedStorageManager.createWithExceptionHandling(LockBasedStorageManager.java:65)" debug string
This commit is contained in:
committed by
Nikolay Krasko
parent
b7b6d319f1
commit
cb32bc97dd
@@ -80,18 +80,15 @@ public class LockBasedStorageManager implements StorageManager {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public LockBasedStorageManager() {
|
public LockBasedStorageManager() {
|
||||||
this(getPointOfConstruction(), ExceptionHandlingStrategy.THROW, new ReentrantLock());
|
this(defaultDebugName(), ExceptionHandlingStrategy.THROW, new ReentrantLock());
|
||||||
}
|
}
|
||||||
|
|
||||||
protected LockBasedStorageManager(@NotNull ExceptionHandlingStrategy exceptionHandlingStrategy) {
|
protected LockBasedStorageManager(@NotNull ExceptionHandlingStrategy exceptionHandlingStrategy) {
|
||||||
this(getPointOfConstruction(), exceptionHandlingStrategy, new ReentrantLock());
|
this(defaultDebugName(), exceptionHandlingStrategy, new ReentrantLock());
|
||||||
}
|
}
|
||||||
|
|
||||||
private static String getPointOfConstruction() {
|
private static String defaultDebugName() {
|
||||||
StackTraceElement[] trace = Thread.currentThread().getStackTrace();
|
return "<unknown creating class>";
|
||||||
// we need to skip frames for getStackTrace(), this method and the constructor that's calling it
|
|
||||||
if (trace.length <= 3) return "<unknown creating class>";
|
|
||||||
return trace[3].toString();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@@ -478,7 +475,7 @@ public class LockBasedStorageManager implements StorageManager {
|
|||||||
@NotNull LockBasedStorageManager base,
|
@NotNull LockBasedStorageManager base,
|
||||||
@NotNull ExceptionHandlingStrategy newStrategy
|
@NotNull ExceptionHandlingStrategy newStrategy
|
||||||
) {
|
) {
|
||||||
return new LockBasedStorageManager(getPointOfConstruction(), newStrategy, base.lock);
|
return new LockBasedStorageManager(defaultDebugName(), newStrategy, base.lock);
|
||||||
}
|
}
|
||||||
|
|
||||||
@NotNull
|
@NotNull
|
||||||
|
|||||||
Reference in New Issue
Block a user