mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
cleanup
This commit is contained in:
-1
@@ -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) {
|
||||
|
||||
+1
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user