diff options
author | Brian Duff <bduff@google.com> | 2015-01-22 02:14:42 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2015-01-22 02:14:42 +0000 |
commit | 1c2c4706c4995122bb1271618511b27e84a9326a (patch) | |
tree | a519c8ddbb21af6ea2ede4b3f35f68ba08821f23 | |
parent | e6ae5ecfc360e1ad261b561c8e5e16b6554d5347 (diff) | |
parent | d270ce1431d40af4caebdcac447cf762036ade1c (diff) | |
download | external_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 |
Merge "Exclude cachedSize when printing fields."gradle_1.1.3gradle_1.1.2gradle_1.1.1gradle_1.1.0-rc3gradle_1.1.0-rc2gradle_1.1.0-rc1gradle_1.1.0
-rw-r--r-- | java/src/main/java/com/google/protobuf/nano/MessageNanoPrinter.java | 4 |
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 |