abstraction issue: HashMap -> Map, ArrayList -> List in parameters

This commit is contained in:
Alex Tkachman
2012-08-23 18:07:22 +03:00
parent 69f5ef2862
commit 49c19cd7ed
2 changed files with 4 additions and 4 deletions
@@ -22,7 +22,7 @@ import org.jetbrains.jet.lang.psi.*;
import org.jetbrains.jet.lang.resolve.BindingContext;
import javax.inject.Inject;
import java.util.HashMap;
import java.util.Map;
/**
* @author max
@@ -82,7 +82,7 @@ public class ClassCodegen {
CodegenContext context,
JetClassOrObject aClass,
OwnerKind kind,
HashMap<DeclarationDescriptor, DeclarationDescriptor> accessors,
Map<DeclarationDescriptor, DeclarationDescriptor> accessors,
ClassBuilder classBuilder
) {
ClassDescriptor descriptor = state.getBindingContext().get(BindingContext.CLASS, aClass);
@@ -309,7 +309,7 @@ public class ClosureCodegen extends ObjectOrClosureCodegen {
return constructor;
}
private boolean calculateConstructorParameters(FunctionDescriptor funDescriptor, ArrayList<Pair<String, Type>> args) {
private boolean calculateConstructorParameters(FunctionDescriptor funDescriptor, List<Pair<String, Type>> args) {
if (captureThis != null) {
final Type type = typeMapper.mapType(context.getThisDescriptor().getDefaultType(), MapTypeMode.VALUE);
args.add(new Pair<String, Type>("this$0", type));
@@ -347,7 +347,7 @@ public class ClosureCodegen extends ObjectOrClosureCodegen {
return putFieldForMyself;
}
private static Type[] nameAnTypeListToTypeArray(ArrayList<Pair<String, Type>> args) {
private static Type[] nameAnTypeListToTypeArray(List<Pair<String, Type>> args) {
final Type[] argTypes = new Type[args.size()];
for (int i = 0; i != argTypes.length; ++i) {
argTypes[i] = args.get(i).second;