diff options
Diffstat (limited to 'test/cuchaz/enigma/EntryFactory.java')
| -rw-r--r-- | test/cuchaz/enigma/EntryFactory.java | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/test/cuchaz/enigma/EntryFactory.java b/test/cuchaz/enigma/EntryFactory.java index fa90779..8c94bdf 100644 --- a/test/cuchaz/enigma/EntryFactory.java +++ b/test/cuchaz/enigma/EntryFactory.java | |||
| @@ -18,6 +18,7 @@ import cuchaz.enigma.mapping.ConstructorEntry; | |||
| 18 | import cuchaz.enigma.mapping.FieldEntry; | 18 | import cuchaz.enigma.mapping.FieldEntry; |
| 19 | import cuchaz.enigma.mapping.MethodEntry; | 19 | import cuchaz.enigma.mapping.MethodEntry; |
| 20 | import cuchaz.enigma.mapping.Signature; | 20 | import cuchaz.enigma.mapping.Signature; |
| 21 | import cuchaz.enigma.mapping.Type; | ||
| 21 | 22 | ||
| 22 | public class EntryFactory { | 23 | public class EntryFactory { |
| 23 | 24 | ||
| @@ -25,12 +26,12 @@ public class EntryFactory { | |||
| 25 | return new ClassEntry(name); | 26 | return new ClassEntry(name); |
| 26 | } | 27 | } |
| 27 | 28 | ||
| 28 | public static FieldEntry newField(String className, String fieldName) { | 29 | public static FieldEntry newField(String className, String fieldName, String fieldType) { |
| 29 | return newField(newClass(className), fieldName); | 30 | return newField(newClass(className), fieldName, fieldType); |
| 30 | } | 31 | } |
| 31 | 32 | ||
| 32 | public static FieldEntry newField(ClassEntry classEntry, String fieldName) { | 33 | public static FieldEntry newField(ClassEntry classEntry, String fieldName, String fieldType) { |
| 33 | return new FieldEntry(classEntry, fieldName); | 34 | return new FieldEntry(classEntry, fieldName, new Type(fieldType)); |
| 34 | } | 35 | } |
| 35 | 36 | ||
| 36 | public static MethodEntry newMethod(String className, String methodName, String methodSignature) { | 37 | public static MethodEntry newMethod(String className, String methodName, String methodSignature) { |