summaryrefslogtreecommitdiff
path: root/container-compiler-plugin/src/main
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2013-08-11 11:15:56 +0200
committerTrygve Laugstøl <trygvis@inamo.no>2013-08-11 11:15:56 +0200
commit41704c6a57d53b90b4e764ea4fb9c8ff81ced500 (patch)
tree8bc48c8dd1496a6c9637a826067b28e4fd601fa9 /container-compiler-plugin/src/main
parent238ee120f2220e3359722416df07853baf926a96 (diff)
downloadcontainer-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')
-rw-r--r--container-compiler-plugin/src/main/java/io/trygvis/container/compiler/model/TypeRef.java10
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);
}