We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6bae8ed commit fe2a647Copy full SHA for fe2a647
schema_salad/java_codegen.py
@@ -446,11 +446,16 @@ def type_loader(
446
"https://w3id.org/cwl/salad#array",
447
):
448
i = self.type_loader(type_declaration["items"])
449
+ instance_type = (
450
+ "java.util.List<String>"
451
+ if i.instance_type == "String"
452
+ else "java.util.List<Object>"
453
+ )
454
return self.declare_type(
455
TypeDef(
456
# special doesn't work out with subclassing, gotta be more clever
457
# instance_type="List<{}>".format(i.instance_type),
- instance_type="java.util.List<Object>",
458
+ instance_type=instance_type,
459
name=f"array_of_{i.name}",
460
init=f"new ArrayLoader({i.name})",
461
loader_type="Loader<java.util.List<{}>>".format(
0 commit comments