From c935f2dc417331f8991d3ab453a04d6a4114d5ba Mon Sep 17 00:00:00 2001 From: Eugene Zhuravlev Date: Tue, 1 Feb 2005 17:25:53 +0300 Subject: [PATCH] fix performance problems --- .../execution/application/ApplicationConfigurationType.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/source/com/intellij/execution/application/ApplicationConfigurationType.java b/source/com/intellij/execution/application/ApplicationConfigurationType.java index 55edb6b2ef85..3a8b75b06124 100644 --- a/source/com/intellij/execution/application/ApplicationConfigurationType.java +++ b/source/com/intellij/execution/application/ApplicationConfigurationType.java @@ -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"); }