mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
fix performance problems
This commit is contained in:
@@ -104,9 +104,7 @@ public class ApplicationConfigurationType implements LocatableConfigurationType
|
||||
final PsiType type = parameters[0].getType();
|
||||
if (!(type instanceof PsiArrayType)) return false;
|
||||
final PsiType componentType = ((PsiArrayType)type).getComponentType();
|
||||
final PsiElementFactory factory = method.getManager().getElementFactory();
|
||||
final PsiClassType stringType = factory.createType(factory.createReferenceElementByFQClassName("java.lang.String", method.getResolveScope()));
|
||||
return stringType.equals(componentType);
|
||||
return componentType.equalsToText("java.lang.String");
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user