mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-03-22 15:19:59 +07:00
Fix warnings
GitOrigin-RevId: 499443280f431271c8d9e03ad1bd8a8e30fb1293
This commit is contained in:
committed by
intellij-monorepo-bot
parent
1d574f4cf2
commit
85c9208ea3
@@ -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);
|
||||
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user