[jps] KT-55309 Inline storage initialization
This commit is contained in:
committed by
Space Team
parent
dfead910b9
commit
dbddbab73c
@@ -28,11 +28,7 @@ abstract class BasicMap<K : Comparable<K>, V>(
|
|||||||
keyDescriptor: KeyDescriptor<K>,
|
keyDescriptor: KeyDescriptor<K>,
|
||||||
valueExternalizer: DataExternalizer<V>
|
valueExternalizer: DataExternalizer<V>
|
||||||
) {
|
) {
|
||||||
protected val storage: LazyStorage<K, V>
|
protected val storage: LazyStorage<K, V> = CachingLazyStorage(storageFile, keyDescriptor, valueExternalizer)
|
||||||
|
|
||||||
init {
|
|
||||||
storage = CachingLazyStorage(storageFile, keyDescriptor, valueExternalizer)
|
|
||||||
}
|
|
||||||
|
|
||||||
fun clean() {
|
fun clean() {
|
||||||
storage.clean()
|
storage.clean()
|
||||||
|
|||||||
Reference in New Issue
Block a user