Ver código fonte

Use IdentityHashMap for parameter Info

kindlich 6 anos atrás
pai
commit
33f3e6406a
Nenhuma chave conhecida encontrada para esta assinatura no banco de dados

+ 2
- 1
JavaShared/src/main/java/org/openzen/zenscript/javashared/JavaCompiledModule.java Ver arquivo

@@ -6,6 +6,7 @@
6 6
 package org.openzen.zenscript.javashared;
7 7
 
8 8
 import java.util.HashMap;
9
+import java.util.IdentityHashMap;
9 10
 import java.util.Map;
10 11
 import org.openzen.zenscript.codemodel.FunctionParameter;
11 12
 import org.openzen.zenscript.codemodel.HighLevelDefinition;
@@ -34,7 +35,7 @@ public class JavaCompiledModule {
34 35
 	private final Map<IDefinitionMember, JavaField> fields = new HashMap<>();
35 36
 	private final Map<IDefinitionMember, JavaMethod> methods = new HashMap<>();
36 37
 	private final Map<TypeParameter, JavaTypeParameterInfo> typeParameters = new HashMap<>();
37
-	private final Map<FunctionParameter, JavaParameterInfo> parameters = new HashMap<>();
38
+	private final Map<FunctionParameter, JavaParameterInfo> parameters = new IdentityHashMap<>();
38 39
 	private final Map<VariantDefinition.Option, JavaVariantOption> variantOptions = new HashMap<>();
39 40
 	
40 41
 	public JavaCompiledModule(Module module, FunctionParameter[] scriptParameters) {

Carregando…
Cancelar
Salvar