DiType.toString()

This commit is contained in:
Stepan Koltsov
2012-04-08 05:39:40 +04:00
parent 611b04025d
commit ae9155f1af
@@ -142,4 +142,13 @@ class DiType {
public static DiType listOf(@NotNull DiType type) {
return new DiType(List.class, Lists.newArrayList(type));
}
@Override
public String toString() {
if (typeParameters.size() > 0) {
return clazz + "<...>";
} else {
return clazz.toString();
}
}
}