diff options
author | Trygve Laugstøl <trygvis@inamo.no> | 2013-08-11 11:15:56 +0200 |
---|---|---|
committer | Trygve Laugstøl <trygvis@inamo.no> | 2013-08-11 11:15:56 +0200 |
commit | 41704c6a57d53b90b4e764ea4fb9c8ff81ced500 (patch) | |
tree | 8bc48c8dd1496a6c9637a826067b28e4fd601fa9 /container-compiler-plugin/src/main/java/io | |
parent | 238ee120f2220e3359722416df07853baf926a96 (diff) | |
download | container-playground-41704c6a57d53b90b4e764ea4fb9c8ff81ced500.tar.gz container-playground-41704c6a57d53b90b4e764ea4fb9c8ff81ced500.tar.bz2 container-playground-41704c6a57d53b90b4e764ea4fb9c8ff81ced500.tar.xz container-playground-41704c6a57d53b90b4e764ea4fb9c8ff81ced500.zip |
o Fixing a couple of test failures.
Diffstat (limited to 'container-compiler-plugin/src/main/java/io')
-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); } |