This commit is contained in:
Max Medvedev
2012-09-28 09:55:57 +03:00
parent bf48dfd5cf
commit 269ebe75df
4 changed files with 4 additions and 3 deletions
@@ -301,7 +301,6 @@ public class GrCodeReferenceElementImpl extends GrReferenceElementImpl<GrCodeRef
final String refText = PsiUtil.getQualifiedReferenceText(this);
LOG.assertTrue(refText != null, this.getText());
final int lastDot = refText.lastIndexOf(".");
String parentPackageFQName = StringUtil.getPackageName(refText);
final PsiPackage parentPackage = JavaPsiFacade.getInstance(getProject()).findPackage(parentPackageFQName);
if (parentPackage != null) {
@@ -289,6 +289,7 @@ public class GrTypeParameterImpl extends GrStubElementBase<GrTypeParameterStub>
return PsiUtil.getJavaNameIdentifier(this);
}
@Nullable
public PsiElement getScope() {
return null;
}
@@ -37,7 +37,8 @@ public class GrMethodStub extends StubBase<GrMethod> implements NamedStub<GrMeth
StringRef name,
final String[] annotations,
final @NotNull String[] namedParameters,
final GrMethodElementType elementType, @Nullable String typeText) {
final GrMethodElementType elementType,
@Nullable String typeText) {
super(parent, elementType);
myName = name;
myAnnotations = annotations;
@@ -74,7 +74,7 @@ public class GrStubUtils {
}
@Nullable
public static String getTypeText(GrTypeElement typeElement) {
public static String getTypeText(@Nullable GrTypeElement typeElement) {
return typeElement == null ? null : typeElement.getText();
}