mirror of
https://github.com/msgpack/msgpack-python.git
synced 2026-02-06 17:59:52 +00:00
java: DefaultTemplate: uses lookupType.toString() instead of lookupType.getClass().getName()
This commit is contained in:
parent
3731373de1
commit
22124a33ce
1 changed files with 3 additions and 3 deletions
|
|
@ -50,7 +50,7 @@ public class DefaultTemplate implements Template {
|
|||
}
|
||||
Template tmpl = TemplateRegistry.tryLookup(lookupType);
|
||||
if(tmpl == this || tmpl == null) {
|
||||
throw new MessageTypeException("Template lookup fail: " + lookupType.getClass().getName());
|
||||
throw new MessageTypeException("Template lookup fail: " + lookupType);
|
||||
}
|
||||
tmpl.pack(pk, target);
|
||||
}
|
||||
|
|
@ -69,7 +69,7 @@ public class DefaultTemplate implements Template {
|
|||
}
|
||||
Template tmpl = TemplateRegistry.tryLookup(lookupType);
|
||||
if(tmpl == this || tmpl == null) {
|
||||
throw new MessageTypeException("Template lookup fail: " + lookupType.getClass().getName());
|
||||
throw new MessageTypeException("Template lookup fail: " + lookupType);
|
||||
}
|
||||
return tmpl.unpack(pac, to);
|
||||
}
|
||||
|
|
@ -88,7 +88,7 @@ public class DefaultTemplate implements Template {
|
|||
}
|
||||
Template tmpl = TemplateRegistry.tryLookup(lookupType);
|
||||
if(tmpl == this || tmpl == null) {
|
||||
throw new MessageTypeException("Template lookup fail: " + lookupType.getClass().getName());
|
||||
throw new MessageTypeException("Template lookup fail: " + lookupType);
|
||||
}
|
||||
return tmpl.convert(from, to);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue