|
@@ -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) {
|