nullability

This commit is contained in:
Vladimir Krivosheev
2014-03-06 16:02:04 +01:00
parent c221e1ada6
commit 64ab58dd00
@@ -1,6 +1,6 @@
package com.intellij.openapi.util;
import com.intellij.openapi.util.AsyncResult;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import java.util.concurrent.atomic.AtomicReferenceFieldUpdater;
@@ -13,11 +13,11 @@ public abstract class AsyncValueLoaderManager<HOST, VALUE> {
this.fieldUpdater = fieldUpdater;
}
public boolean checkFreshness(HOST host, VALUE value) {
public boolean checkFreshness(@NotNull HOST host, @NotNull VALUE value) {
return true;
}
public abstract void load(HOST host, AsyncResult<VALUE> result);
public abstract void load(@NotNull HOST host, @NotNull AsyncResult<VALUE> result);
public final void reset(HOST host) {
fieldUpdater.set(host, null);