mirror of
https://github.com/revanced/smali.git
synced 2025-05-06 09:24:33 +02:00
Fix how the PsiType is created for a SmaliMethodParam stub
This commit is contained in:
parent
16dde79e58
commit
c623d94ff0
@ -89,8 +89,7 @@ public class SmaliMethodParameter extends SmaliStubBasedPsiElement<SmaliMethodPa
|
|||||||
SmaliMethodParameterStub stub = getStub();
|
SmaliMethodParameterStub stub = getStub();
|
||||||
if (stub != null) {
|
if (stub != null) {
|
||||||
String type = stub.getType();
|
String type = stub.getType();
|
||||||
PsiElementFactory factory = JavaPsiFacade.getInstance(getProject()).getElementFactory();
|
return JavaPsiFacade.getInstance(getProject()).getParserFacade().createTypeFromText(type, null);
|
||||||
return factory.createTypeByFQClassName(type, getResolveScope());
|
|
||||||
}
|
}
|
||||||
return getTypeElement().getType();
|
return getTypeElement().getType();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user