diff --git a/core/util.runtime/src/org/jetbrains/kotlin/storage/LockBasedStorageManager.java b/core/util.runtime/src/org/jetbrains/kotlin/storage/LockBasedStorageManager.java index fb970b6385e..e92c234d8a5 100644 --- a/core/util.runtime/src/org/jetbrains/kotlin/storage/LockBasedStorageManager.java +++ b/core/util.runtime/src/org/jetbrains/kotlin/storage/LockBasedStorageManager.java @@ -305,10 +305,7 @@ public class LockBasedStorageManager implements StorageManager { private static class LockBasedLazyValue implements NullableLazyValue { private final LockBasedStorageManager storageManager; - /** - * Computable function is null when value has been calculated - */ - private Function0 computable; + private final Function0 computable; @Nullable private volatile Object value = NotValue.NOT_COMPUTED; @@ -362,7 +359,6 @@ public class LockBasedStorageManager implements StorageManager { postCompute(typedValue); value = typedValue; - computable = null; return typedValue; } catch (Throwable throwable) {