[jps] KT-55309 Inline storage initialization

This commit is contained in:
Mikhail Mazurkevich
2022-12-07 20:24:45 +04:00
committed by Space Team
parent dfead910b9
commit dbddbab73c
@@ -28,11 +28,7 @@ abstract class BasicMap<K : Comparable<K>, V>(
keyDescriptor: KeyDescriptor<K>,
valueExternalizer: DataExternalizer<V>
) {
protected val storage: LazyStorage<K, V>
init {
storage = CachingLazyStorage(storageFile, keyDescriptor, valueExternalizer)
}
protected val storage: LazyStorage<K, V> = CachingLazyStorage(storageFile, keyDescriptor, valueExternalizer)
fun clean() {
storage.clean()