Replace a hack (Internals class) with a less-of-a-hack workaround

LockBasedLazyResolveStorageManager is put into the same package as LockBasedStorageManager
This commit is contained in:
Andrey Breslav
2014-01-20 22:58:57 +04:00
parent 4936b66626
commit ce1702d633
9 changed files with 13 additions and 39 deletions
@@ -375,28 +375,4 @@ public class LockBasedStorageManager implements StorageManager {
}
}
@Deprecated // Use with care
public class Internals {
@NotNull
public Lock getLock() {
return lock;
}
@NotNull
public <K, V> MemoizedFunctionToNotNull<K, V> createMemoizedFunction(
@NotNull Function1<? super K, ? extends V> compute,
@NotNull ConcurrentMap<K, Object> map
) {
return LockBasedStorageManager.this.createMemoizedFunction(compute, map);
}
@NotNull
public <K, V> MemoizedFunctionToNullable<K, V> createMemoizedFunctionWithNullableValues(
@NotNull Function1<? super K, ? extends V> compute,
@NotNull ConcurrentMap<K, Object> map
) {
return LockBasedStorageManager.this.createMemoizedFunctionWithNullableValues(compute, map);
}
}
}