Replace more usages of TypeToken#toString
This commit is contained in:
parent
3df3560d91
commit
83163c2a77
5 changed files with 13 additions and 13 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue