From 6d64ff57332bdc81571d103d8ca81f437487c263 Mon Sep 17 00:00:00 2001 From: Dmitry Jemerov Date: Tue, 5 Aug 2008 22:27:44 +0400 Subject: [PATCH] @NotNull --- source/com/intellij/psi/impl/source/parsing/Parsing.java | 3 ++- source/com/intellij/psi/impl/source/resolve/PsiResolveHelperImpl.java | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/source/com/intellij/psi/impl/source/parsing/Parsing.java b/source/com/intellij/psi/impl/source/parsing/Parsing.java index 17ace19464..88ec690d4f 100644 --- a/source/com/intellij/psi/impl/source/parsing/Parsing.java +++ b/source/com/intellij/psi/impl/source/parsing/Parsing.java @@ -14,6 +14,7 @@ import com.intellij.psi.impl.source.DummyHolderFactory; import com.intellij.psi.impl.source.tree.*; import com.intellij.psi.tree.IElementType; import com.intellij.util.CharTable; +import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; public class Parsing implements Constants{ @@ -26,7 +27,7 @@ public class Parsing implements Constants{ } @Nullable - public static CompositeElement parseJavaCodeReferenceText(PsiManager manager, CharSequence buffer, CharTable table) { + public static CompositeElement parseJavaCodeReferenceText(PsiManager manager, @NotNull CharSequence buffer, CharTable table) { return (CompositeElement)parseJavaCodeReferenceText(manager, buffer, 0, buffer.length(), table, false); } diff --git a/source/com/intellij/psi/impl/source/resolve/PsiResolveHelperImpl.java b/source/com/intellij/psi/impl/source/resolve/PsiResolveHelperImpl.java index d47acb00de..9e731fa89b 100644 --- a/source/com/intellij/psi/impl/source/resolve/PsiResolveHelperImpl.java +++ b/source/com/intellij/psi/impl/source/resolve/PsiResolveHelperImpl.java @@ -68,7 +68,7 @@ public class PsiResolveHelperImpl implements PsiResolveHelper { return processor.getResult(); } - public PsiClass resolveReferencedClass(String referenceText, PsiElement context) { + public PsiClass resolveReferencedClass(@NotNull String referenceText, PsiElement context) { final FileElement holderElement = DummyHolderFactory.createHolder(myManager, context).getTreeElement(); CompositeElement ref = Parsing.parseJavaCodeReferenceText(myManager, referenceText, holderElement.getCharTable()); if (ref == null) return null; -- 2.11.4.GIT