diff options
author | Jisi Liu <jisi.liu@gmail.com> | 2015-02-19 10:26:49 -0800 |
---|---|---|
committer | Jisi Liu <jisi.liu@gmail.com> | 2015-02-19 11:29:24 -0800 |
commit | fbfdbe8ad8a4acd9fea54cfc4716ea82753b8f60 (patch) | |
tree | 349162da0779d2e81f29a889b21479222c2ceed4 /javanano/src/main/java/com/google | |
parent | c265fbe3ca6e1811524831fbf89a3d7cfdf97412 (diff) | |
download | protobuf-fbfdbe8ad8a4acd9fea54cfc4716ea82753b8f60.tar.gz protobuf-fbfdbe8ad8a4acd9fea54cfc4716ea82753b8f60.tar.bz2 protobuf-fbfdbe8ad8a4acd9fea54cfc4716ea82753b8f60.zip |
Use EMPTY_BYTES in WireFormatNano
Diffstat (limited to 'javanano/src/main/java/com/google')
-rw-r--r-- | javanano/src/main/java/com/google/protobuf/nano/InternalNano.java | 3 |
1 files changed, 1 insertions, 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 c92ec417..4a08bb58 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: |