mirror of
https://github.com/msgpack/msgpack-c.git
synced 2025-10-21 23:56:55 +02:00
java: DefaultTemplate: uses lookupType.toString() instead of lookupType.getClass().getName()
This commit is contained in:
@@ -50,7 +50,7 @@ public class DefaultTemplate implements Template {
|
|||||||
}
|
}
|
||||||
Template tmpl = TemplateRegistry.tryLookup(lookupType);
|
Template tmpl = TemplateRegistry.tryLookup(lookupType);
|
||||||
if(tmpl == this || tmpl == null) {
|
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);
|
tmpl.pack(pk, target);
|
||||||
}
|
}
|
||||||
@@ -69,7 +69,7 @@ public class DefaultTemplate implements Template {
|
|||||||
}
|
}
|
||||||
Template tmpl = TemplateRegistry.tryLookup(lookupType);
|
Template tmpl = TemplateRegistry.tryLookup(lookupType);
|
||||||
if(tmpl == this || tmpl == null) {
|
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);
|
return tmpl.unpack(pac, to);
|
||||||
}
|
}
|
||||||
@@ -88,7 +88,7 @@ public class DefaultTemplate implements Template {
|
|||||||
}
|
}
|
||||||
Template tmpl = TemplateRegistry.tryLookup(lookupType);
|
Template tmpl = TemplateRegistry.tryLookup(lookupType);
|
||||||
if(tmpl == this || tmpl == null) {
|
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);
|
return tmpl.convert(from, to);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user