diff options
Diffstat (limited to 'container-compiler-plugin/src/main')
-rw-r--r-- | container-compiler-plugin/src/main/java/io/trygvis/container/compiler/model/TypeRef.java | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/container-compiler-plugin/src/main/java/io/trygvis/container/compiler/model/TypeRef.java b/container-compiler-plugin/src/main/java/io/trygvis/container/compiler/model/TypeRef.java index c329ab3..d359029 100644 --- a/container-compiler-plugin/src/main/java/io/trygvis/container/compiler/model/TypeRef.java +++ b/container-compiler-plugin/src/main/java/io/trygvis/container/compiler/model/TypeRef.java @@ -82,10 +82,6 @@ public class TypeRef implements Comparable<TypeRef> { this(fqName, name, false, array, args); } - public TypeRef args(List<String> args) { - return new TypeRef(fqName, plainName, primitive, array, args); - } - public boolean isPrimitive() { return primitive; } @@ -108,10 +104,14 @@ public class TypeRef implements Comparable<TypeRef> { return fqName; } + public TypeRef args(List<String> args) { + return new TypeRef(fqName, plainName, primitive, array, args); + } + public TypeRef args(TypeRef... args) { List<String> list = new ArrayList<>(); for (TypeRef arg : args) { - list.add(arg.plainName); + list.add(arg.toString()); } return args(list); } |