mirror of
https://github.com/msgpack/msgpack-c.git
synced 2025-04-01 01:16:52 +02:00
java: DefaultTemplate: uses lookupType.toString() instead of lookupType.getClass().getName()
This commit is contained in:
parent
3731373de1
commit
22124a33ce
@ -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…
x
Reference in New Issue
Block a user