replace ArrayList to SmartList

This commit is contained in:
Stanislav Erokhin
2015-06-19 17:28:37 +03:00
parent 2f68cc4c97
commit 1e7b96aec0
2 changed files with 5 additions and 3 deletions
@@ -17,6 +17,8 @@
package org.jetbrains.kotlin.resolve.calls;
import com.google.common.collect.Lists;
import com.intellij.util.SmartList;
import com.intellij.util.containers.ContainerUtil;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.kotlin.builtins.KotlinBuiltIns;
import org.jetbrains.kotlin.descriptors.CallableDescriptor;
@@ -116,7 +118,7 @@ public class CallResolverUtil {
receiverType = typeParameter.getUpperBoundsAsType();
}
}
List<TypeProjection> fakeTypeArguments = Lists.newArrayList();
List<TypeProjection> fakeTypeArguments = ContainerUtil.newSmartList();
for (TypeProjection typeProjection : receiverType.getArguments()) {
fakeTypeArguments.add(new TypeProjectionImpl(typeProjection.getProjectionKind(), DONT_CARE));
}
@@ -16,7 +16,7 @@
package org.jetbrains.kotlin.resolve.calls.tasks;
import com.google.common.collect.Lists;
import com.intellij.util.SmartList;
import kotlin.jvm.functions.Function0;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
@@ -82,7 +82,7 @@ public class ResolutionTask<D extends CallableDescriptor, F extends D> extends C
context.expectedType, context.dataFlowInfo, context.contextDependency, context.checkArguments,
context.resolutionResultsCache, context.dataFlowInfoForArguments,
context.callChecker, context.symbolUsageValidator, context.additionalTypeChecker,
context.statementFilter, Lists.<MutableResolvedCall<F>>newArrayList(),
context.statementFilter, new SmartList<MutableResolvedCall<F>>(),
context.isAnnotationContext, context.collectAllCandidates, context.insideCallChain);
}