This commit is contained in:
@@ -26,9 +26,10 @@ public final class AnyEncoder<T> implements Encodeable<Writer, T> {
|
|||||||
@SuppressWarnings("unchecked")
|
@SuppressWarnings("unchecked")
|
||||||
public void convertTo(final Writer out, final T value) {
|
public void convertTo(final Writer out, final T value) {
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
|
out.wirteClassName(null);
|
||||||
out.writeNull();
|
out.writeNull();
|
||||||
} else {
|
} else {
|
||||||
out.wirteClassName(factory.getEntity(value.getClass()));
|
out.wirteClassName(factory.getEntity(value.getClass()));
|
||||||
factory.loadEncoder(value.getClass()).convertTo(out, value);
|
factory.loadEncoder(value.getClass()).convertTo(out, value);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user