diff options
author | Wink Saville <wink@google.com> | 2012-06-11 10:34:07 -0700 |
---|---|---|
committer | Wink Saville <wink@google.com> | 2012-06-11 11:37:50 -0700 |
commit | 6b42a64f2e36e5a34b99a5c3054658ccf9735b39 (patch) | |
tree | a616aa1209b8cd98775d668347514f90348ca7af /java | |
parent | e217977611c52bccde7f7c78e1d3c790c6357431 (diff) | |
download | external_protobuf-6b42a64f2e36e5a34b99a5c3054658ccf9735b39.zip external_protobuf-6b42a64f2e36e5a34b99a5c3054658ccf9735b39.tar.gz external_protobuf-6b42a64f2e36e5a34b99a5c3054658ccf9735b39.tar.bz2 |
When computing Group and Message size use getSerializedSize.
Bug: 6589939
Change-Id: I3050a99b08edf48301314163d41ea6f8080ffcdb
Diffstat (limited to 'java')
-rw-r--r-- | java/src/main/java/com/google/protobuf/micro/CodedOutputStreamMicro.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/java/src/main/java/com/google/protobuf/micro/CodedOutputStreamMicro.java b/java/src/main/java/com/google/protobuf/micro/CodedOutputStreamMicro.java index 0cb0774..dd722ba 100644 --- a/java/src/main/java/com/google/protobuf/micro/CodedOutputStreamMicro.java +++ b/java/src/main/java/com/google/protobuf/micro/CodedOutputStreamMicro.java @@ -674,7 +674,7 @@ public final class CodedOutputStreamMicro { * {@code group} field. */ public static int computeGroupSizeNoTag(final MessageMicro value) { - return value.getCachedSize(); + return value.getSerializedSize(); } /** @@ -682,7 +682,7 @@ public final class CodedOutputStreamMicro { * message field. */ public static int computeMessageSizeNoTag(final MessageMicro value) { - final int size = value.getCachedSize(); + final int size = value.getSerializedSize(); return computeRawVarint32Size(size) + size; } |