mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
notnull
This commit is contained in:
@@ -574,7 +574,7 @@ class IndexTest extends JavaCodeInsightFixtureTestCase {
|
||||
FileBasedIndex.instance.
|
||||
processValues(IdIndex.NAME, new IdIndexEntry("Foo", true), null, new FileBasedIndex.ValueProcessor<Integer>() {
|
||||
@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<SerializedStubTree>() {
|
||||
@Override
|
||||
boolean process(VirtualFile file2, SerializedStubTree value2) {
|
||||
boolean process(@NotNull VirtualFile file2, SerializedStubTree value2) {
|
||||
foundStub[0] = true
|
||||
return true
|
||||
}
|
||||
|
||||
+1
-1
@@ -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)) {
|
||||
|
||||
@@ -213,7 +213,7 @@ public class XsltSymbolIndex extends FileBasedIndexExtension<String, XsltSymbolI
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean process(VirtualFile file, Kind kind) {
|
||||
public boolean process(@NotNull VirtualFile file, Kind kind) {
|
||||
if (myScope.contains(file)) {
|
||||
final PsiFile psiFile = myMgr.findFile(file);
|
||||
if (psiFile != null && XsltSupport.isXsltFile(psiFile)) {
|
||||
|
||||
@@ -131,7 +131,7 @@ public class DefaultXmlTagNameProvider implements XmlTagNameProvider {
|
||||
if (ns.startsWith("file://")) continue;
|
||||
fbi.processValues(XmlNamespaceIndex.NAME, ns, null, new FileBasedIndex.ValueProcessor<XsdNamespaceBuilder>() {
|
||||
@Override
|
||||
public boolean process(final VirtualFile file, XsdNamespaceBuilder value) {
|
||||
public boolean process(@NotNull final VirtualFile file, XsdNamespaceBuilder value) {
|
||||
List<String> tags = value.getRootTags();
|
||||
for (String s : tags) {
|
||||
elements.add(LookupElementBuilder.create(s).withTypeText(ns).withInsertHandler(new XmlTagInsertHandler() {
|
||||
|
||||
Reference in New Issue
Block a user