From fbfdbe8ad8a4acd9fea54cfc4716ea82753b8f60 Mon Sep 17 00:00:00 2001 From: Jisi Liu Date: Thu, 19 Feb 2015 10:26:49 -0800 Subject: [PATCH] Use EMPTY_BYTES in WireFormatNano --- .../src/main/java/com/google/protobuf/nano/InternalNano.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/javanano/src/main/java/com/google/protobuf/nano/InternalNano.java b/javanano/src/main/java/com/google/protobuf/nano/InternalNano.java index c92ec41761..4a08bb589a 100644 --- a/javanano/src/main/java/com/google/protobuf/nano/InternalNano.java +++ b/javanano/src/main/java/com/google/protobuf/nano/InternalNano.java @@ -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: