diff --git a/java/java-tests/testSrc/com/intellij/index/IndexTest.groovy b/java/java-tests/testSrc/com/intellij/index/IndexTest.groovy index 5cf526a20a09..154ce9e653e0 100644 --- a/java/java-tests/testSrc/com/intellij/index/IndexTest.groovy +++ b/java/java-tests/testSrc/com/intellij/index/IndexTest.groovy @@ -574,7 +574,7 @@ class IndexTest extends JavaCodeInsightFixtureTestCase { FileBasedIndex.instance. processValues(IdIndex.NAME, new IdIndexEntry("Foo", true), null, new FileBasedIndex.ValueProcessor() { @Override - boolean process(VirtualFile file, Integer value) { + boolean process(@NotNull VirtualFile file, Integer value) { foundId[0] = true FileBasedIndex.instance.processValues( StubUpdatingIndex.INDEX_ID, @@ -582,7 +582,7 @@ class IndexTest extends JavaCodeInsightFixtureTestCase { null, new FileBasedIndex.ValueProcessor() { @Override - boolean process(VirtualFile file2, SerializedStubTree value2) { + boolean process(@NotNull VirtualFile file2, SerializedStubTree value2) { foundStub[0] = true return true } diff --git a/platform/indexing-impl/src/com/intellij/psi/impl/cache/impl/IndexCacheManagerImpl.java b/platform/indexing-impl/src/com/intellij/psi/impl/cache/impl/IndexCacheManagerImpl.java index 2e3ca149a496..80d71032816e 100644 --- a/platform/indexing-impl/src/com/intellij/psi/impl/cache/impl/IndexCacheManagerImpl.java +++ b/platform/indexing-impl/src/com/intellij/psi/impl/cache/impl/IndexCacheManagerImpl.java @@ -98,7 +98,7 @@ public class IndexCacheManagerImpl implements CacheManager{ final FileIndexFacade index = FileIndexFacade.getInstance(myProject); @Override - public boolean process(final VirtualFile file, final Integer value) { + public boolean process(@NotNull final VirtualFile file, final Integer value) { ProgressIndicatorProvider.checkCanceled(); final int mask = value.intValue(); if ((mask & occurrenceMask) != 0 && index.shouldBeFound(scope, file)) { diff --git a/plugins/xpath/xpath-lang/src/org/intellij/lang/xpath/xslt/impl/XsltSymbolIndex.java b/plugins/xpath/xpath-lang/src/org/intellij/lang/xpath/xslt/impl/XsltSymbolIndex.java index c34099e425e1..139e2ef90f70 100644 --- a/plugins/xpath/xpath-lang/src/org/intellij/lang/xpath/xslt/impl/XsltSymbolIndex.java +++ b/plugins/xpath/xpath-lang/src/org/intellij/lang/xpath/xslt/impl/XsltSymbolIndex.java @@ -213,7 +213,7 @@ public class XsltSymbolIndex extends FileBasedIndexExtension() { @Override - public boolean process(final VirtualFile file, XsdNamespaceBuilder value) { + public boolean process(@NotNull final VirtualFile file, XsdNamespaceBuilder value) { List tags = value.getRootTags(); for (String s : tags) { elements.add(LookupElementBuilder.create(s).withTypeText(ns).withInsertHandler(new XmlTagInsertHandler() {