This commit is contained in:
@@ -37,7 +37,7 @@ public final class AnyEncoder<T> implements Encodeable<Writer, T> {
|
|||||||
|
|
||||||
@SuppressWarnings("unchecked")
|
@SuppressWarnings("unchecked")
|
||||||
public void convertMapTo(final Writer out, final Object... values) {
|
public void convertMapTo(final Writer out, final Object... values) {
|
||||||
if (values == null || values.length < 2) {
|
if (values == null) {
|
||||||
out.writeNull();
|
out.writeNull();
|
||||||
} else {
|
} else {
|
||||||
int count = values.length - values.length % 2;
|
int count = values.length - values.length % 2;
|
||||||
|
|||||||
Reference in New Issue
Block a user