summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian Duff <bduff@google.com>2015-01-22 02:14:42 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2015-01-22 02:14:42 +0000
commit1c2c4706c4995122bb1271618511b27e84a9326a (patch)
treea519c8ddbb21af6ea2ede4b3f35f68ba08821f23
parente6ae5ecfc360e1ad261b561c8e5e16b6554d5347 (diff)
parentd270ce1431d40af4caebdcac447cf762036ade1c (diff)
downloadexternal_protobuf-gradle_1.1.0-rc3.zip
external_protobuf-gradle_1.1.0-rc3.tar.gz
external_protobuf-gradle_1.1.0-rc3.tar.bz2
-rw-r--r--java/src/main/java/com/google/protobuf/nano/MessageNanoPrinter.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/java/src/main/java/com/google/protobuf/nano/MessageNanoPrinter.java b/java/src/main/java/com/google/protobuf/nano/MessageNanoPrinter.java
index 4cca3d5..a30f2f3 100644
--- a/java/src/main/java/com/google/protobuf/nano/MessageNanoPrinter.java
+++ b/java/src/main/java/com/google/protobuf/nano/MessageNanoPrinter.java
@@ -108,6 +108,10 @@ public final class MessageNanoPrinter {
for (Field field : clazz.getFields()) {
int modifiers = field.getModifiers();
String fieldName = field.getName();
+ if ("cachedSize".equals(fieldName)) {
+ // TODO(bduff): perhaps cachedSize should have a more obscure name.
+ continue;
+ }
if ((modifiers & Modifier.PUBLIC) == Modifier.PUBLIC
&& (modifiers & Modifier.STATIC) != Modifier.STATIC