diff --git a/core/util.runtime/src/org/jetbrains/jet/storage/LockBasedStorageManager.java b/core/util.runtime/src/org/jetbrains/jet/storage/LockBasedStorageManager.java index 0fa35abb0ea..fd63db91d0f 100644 --- a/core/util.runtime/src/org/jetbrains/jet/storage/LockBasedStorageManager.java +++ b/core/util.runtime/src/org/jetbrains/jet/storage/LockBasedStorageManager.java @@ -265,7 +265,7 @@ public class LockBasedStorageManager implements StorageManager { @Override @Nullable - public V invoke(@NotNull K input) { + public V invoke(K input) { Object value = cache.get(input); if (value != null) return WrappedValues.unescapeExceptionOrNull(value); @@ -306,7 +306,7 @@ public class LockBasedStorageManager implements StorageManager { @NotNull @Override - public V invoke(@NotNull K input) { + public V invoke(K input) { V result = super.invoke(input); assert result != null : "compute() returned null"; return result; diff --git a/core/util.runtime/src/org/jetbrains/jet/storage/MemoizedFunctionToNotNull.java b/core/util.runtime/src/org/jetbrains/jet/storage/MemoizedFunctionToNotNull.java deleted file mode 100644 index 55e853f5640..00000000000 --- a/core/util.runtime/src/org/jetbrains/jet/storage/MemoizedFunctionToNotNull.java +++ /dev/null @@ -1,26 +0,0 @@ -/* - * Copyright 2010-2013 JetBrains s.r.o. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package org.jetbrains.jet.storage; - -import jet.Function1; -import org.jetbrains.annotations.NotNull; - -public interface MemoizedFunctionToNotNull
extends Function1
{ - @Override - @NotNull - R invoke(P p); -} diff --git a/core/util.runtime/src/org/jetbrains/jet/storage/MemoizedFunctionToNullable.java b/core/util.runtime/src/org/jetbrains/jet/storage/MemoizedFunctionToNullable.java deleted file mode 100644 index 5521c143933..00000000000 --- a/core/util.runtime/src/org/jetbrains/jet/storage/MemoizedFunctionToNullable.java +++ /dev/null @@ -1,26 +0,0 @@ -/* - * Copyright 2010-2013 JetBrains s.r.o. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package org.jetbrains.jet.storage; - -import jet.Function1; -import org.jetbrains.annotations.Nullable; - -public interface MemoizedFunctionToNullable
extends Function1
{
- @Override
- @Nullable
- R invoke(P p);
-}
diff --git a/core/util.runtime/src/org/jetbrains/jet/storage/NullableLazyValue.java b/core/util.runtime/src/org/jetbrains/jet/storage/NullableLazyValue.java
deleted file mode 100644
index 63d3984c51a..00000000000
--- a/core/util.runtime/src/org/jetbrains/jet/storage/NullableLazyValue.java
+++ /dev/null
@@ -1,29 +0,0 @@
-/*
- * Copyright 2010-2013 JetBrains s.r.o.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.jetbrains.jet.storage;
-
-import jet.Function0;
-import org.jetbrains.annotations.Nullable;
-
-public interface NullableLazyValue : Function1
+public trait MemoizedFunctionToNullable : Function1
-public interface NotNullLazyValue