Merge pull request #213 from pherl/maps

Use EMPTY_BYTES in WireFormatNano
This commit is contained in:
Chris Fallin 2015-02-19 12:14:57 -08:00
commit 709164e764

View file

@ -354,13 +354,12 @@ public final class InternalNano {
}
return result;
}
private static final byte[] EMPTY_BYTES = new byte[0];
private static Object primitiveDefaultValue(int type) {
switch (type) {
case TYPE_BOOL:
return Boolean.FALSE;
case TYPE_BYTES:
return EMPTY_BYTES;
return WireFormatNano.EMPTY_BYTES;
case TYPE_STRING:
return "";
case TYPE_FLOAT: