Skip to content

Commit

Permalink
Exclude cachedSize when printing fields.
Browse files Browse the repository at this point in the history
Change-Id: I85563b74237d38c1e447b7286f5f6e62d57e3d63
  • Loading branch information
brianduff committed Apr 28, 2015
1 parent d099a88 commit 714dba3
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,10 @@ private static void print(String identifier, Object object,
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
Expand Down

0 comments on commit 714dba3

Please sign in to comment.