mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
nullability
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user