diff options
Diffstat (limited to 'src/main/java/cuchaz/enigma/bytecode/MethodParameterWriter.java')
| -rw-r--r-- | src/main/java/cuchaz/enigma/bytecode/MethodParameterWriter.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/cuchaz/enigma/bytecode/MethodParameterWriter.java b/src/main/java/cuchaz/enigma/bytecode/MethodParameterWriter.java index e53e8e7..17ecbbe 100644 --- a/src/main/java/cuchaz/enigma/bytecode/MethodParameterWriter.java +++ b/src/main/java/cuchaz/enigma/bytecode/MethodParameterWriter.java | |||
| @@ -21,10 +21,10 @@ import javassist.bytecode.LocalVariableAttribute; | |||
| 21 | 21 | ||
| 22 | public class MethodParameterWriter { | 22 | public class MethodParameterWriter { |
| 23 | 23 | ||
| 24 | private Translator m_translator; | 24 | private Translator translator; |
| 25 | 25 | ||
| 26 | public MethodParameterWriter(Translator translator) { | 26 | public MethodParameterWriter(Translator translator) { |
| 27 | m_translator = translator; | 27 | this.translator = translator; |
| 28 | } | 28 | } |
| 29 | 29 | ||
| 30 | public void writeMethodArguments(CtClass c) { | 30 | public void writeMethodArguments(CtClass c) { |
| @@ -56,7 +56,7 @@ public class MethodParameterWriter { | |||
| 56 | // get the list of argument names | 56 | // get the list of argument names |
| 57 | List<String> names = new ArrayList<String>(numParams); | 57 | List<String> names = new ArrayList<String>(numParams); |
| 58 | for (int i = 0; i < numParams; i++) { | 58 | for (int i = 0; i < numParams; i++) { |
| 59 | names.add(m_translator.translate(new ArgumentEntry(behaviorEntry, i, ""))); | 59 | names.add(this.translator.translate(new ArgumentEntry(behaviorEntry, i, ""))); |
| 60 | } | 60 | } |
| 61 | 61 | ||
| 62 | // save the mappings to the class | 62 | // save the mappings to the class |