Replace more usages of TypeToken#toString

This commit is contained in:
Jason Penilla 2021-10-01 12:44:31 -07:00 committed by Jason
parent 3df3560d91
commit 83163c2a77
5 changed files with 13 additions and 13 deletions

View file

@ -104,7 +104,7 @@ public class SimpleCommandMeta extends CommandMeta {
}
if (!GenericTypeReflector.isSuperType(key.getValueType().getType(), value.getClass())) {
throw new IllegalArgumentException("Conflicting argument types between key type of "
+ key.getValueType().getType() + " and value type of " + value.getClass());
+ key.getValueType().getType().getTypeName() + " and value type of " + value.getClass());
}
return Optional.of((V) value);