From f7e756e901b8217b516511a8ca700b5a1c62cfb1 Mon Sep 17 00:00:00 2001 From: zml Date: Mon, 10 May 2021 17:19:47 -0700 Subject: [PATCH] annotations: Correct improper TypeToken toString use --- .../cloud/commandframework/annotations/AnnotationParser.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cloud-annotations/src/main/java/cloud/commandframework/annotations/AnnotationParser.java b/cloud-annotations/src/main/java/cloud/commandframework/annotations/AnnotationParser.java index 0af504e4..144621e2 100644 --- a/cloud-annotations/src/main/java/cloud/commandframework/annotations/AnnotationParser.java +++ b/cloud-annotations/src/main/java/cloud/commandframework/annotations/AnnotationParser.java @@ -542,7 +542,7 @@ public final class AnnotationParser { + "has parser '%s' but no parser exists " + "for that type", parameter.getName(), method.getName(), - token.toString() + token.getType().getTypeName() ))); } else { parser = this.manager.getParserRegistry() @@ -552,7 +552,7 @@ public final class AnnotationParser { + "has parser '%s' but no parser exists " + "for that type", parameter.getName(), method.getName(), - token.toString() + token.getType().getTypeName() ))); } /* Check whether or not the corresponding method parameter actually exists */