diff --git a/platform/util/src/com/intellij/openapi/util/NotNullLazyKey.java b/platform/util/src/com/intellij/openapi/util/NotNullLazyKey.java index d561e5ee4971..3462a9e7eb01 100644 --- a/platform/util/src/com/intellij/openapi/util/NotNullLazyKey.java +++ b/platform/util/src/com/intellij/openapi/util/NotNullLazyKey.java @@ -30,8 +30,8 @@ public class NotNullLazyKey extends Key{ myFunction = function; } - @NotNull - public final T getValue(H h) { + @NotNull + public final T getValue(@NotNull H h) { T data = h.getUserData(this); if (data == null) { h.putUserData(this, data = myFunction.fun(h)); @@ -39,7 +39,7 @@ public class NotNullLazyKey extends Key{ return data; } - public static NotNullLazyKey create(@NonNls String name, final NotNullFunction function) { + public static NotNullLazyKey create(@NonNls @NotNull String name, @NotNull NotNullFunction function) { return new NotNullLazyKey(name, function); } }