Fix warnings

GitOrigin-RevId: 499443280f431271c8d9e03ad1bd8a8e30fb1293
This commit is contained in:
Tagir Valeev
2024-09-11 12:19:38 +02:00
committed by intellij-monorepo-bot
parent 1d574f4cf2
commit 85c9208ea3
3 changed files with 4 additions and 3 deletions

View File

@@ -26,6 +26,7 @@ import com.intellij.openapi.util.Key;
import com.intellij.openapi.util.UserDataHolder;
import com.intellij.psi.PsiElement;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.UnknownNullability;
/**
* The context for a global inspection run. Provides access to the reference graph
@@ -66,7 +67,7 @@ public interface GlobalInspectionContext extends UserDataHolder {
@NotNull
Project getProject();
<T> T getExtension(@NotNull Key<T> key);
<T> @UnknownNullability T getExtension(@NotNull Key<T> key);
void incrementJobDoneAmount(@NotNull JobDescriptor job, @NotNull String message);

View File

@@ -91,7 +91,7 @@ public interface Promise<T> {
* or on promise reject (null as result value will be passed).
*/
@NotNull
Promise<T> onProcessed(@NotNull Consumer<? super T> processed);
Promise<T> onProcessed(@NotNull Consumer<? super @Nullable T> processed);
/**
* Get promise state.

View File

@@ -237,7 +237,7 @@ public final class IndexDataGetter {
@NotNull IntConsumer consumer) throws IOException {
if (candidates == null) {
myIndexStorageBackend.processMessages((commit, message) -> {
if (message != null && condition.test(message)) {
if (condition.test(message)) {
consumer.accept(commit);
}
return true;