Commit 709164e7 authored by Chris Fallin's avatar Chris Fallin

Merge pull request #213 from pherl/maps

Use EMPTY_BYTES in WireFormatNano
parents b262575b fbfdbe8a
......@@ -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:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment