Commit 4ddedec2 authored by Daniel Bluhm's avatar Daniel Bluhm

Fix TypeScriptWriter super constructor call

Signed-off-by: Daniel Bluhm's avatarDaniel Bluhm <bluhmdj@ornl.gov>
parent d03059ef
...@@ -84,7 +84,7 @@ public class TypeScriptWriter ...@@ -84,7 +84,7 @@ public class TypeScriptWriter
public TypeScriptWriter( public TypeScriptWriter(
String name, @NonNull Fields fields, @NonNull Types types String name, @NonNull Fields fields, @NonNull Types types
) { ) {
super(); super(TYPESCRIPT_TEMPLATE);
for (Field field : fields) { for (Field field : fields) {
if (!primitiveMap.containsKey(field.getType())) { if (!primitiveMap.containsKey(field.getType())) {
throw new UnsupportedOperationException(String.format( throw new UnsupportedOperationException(String.format(
...@@ -93,7 +93,6 @@ public class TypeScriptWriter ...@@ -93,7 +93,6 @@ public class TypeScriptWriter
)); ));
} }
} }
this.template = TYPESCRIPT_TEMPLATE;
this.filename = name; this.filename = name;
this.context.put(NAME, name); this.context.put(NAME, name);
this.context.put(FIELDS, fields); this.context.put(FIELDS, fields);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment