Skip to content
This repository has been archived by the owner on Jun 16, 2019. It is now read-only.

Commit

Permalink
Merge pull request #18 from Maxr1998/ignore-additions
Browse files Browse the repository at this point in the history
Fixes #16
  • Loading branch information
afollestad authored Jul 25, 2017
2 parents f450bc5 + 103d9eb commit 7c994b0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/main/java/com/afollestad/ason/Util.java
Original file line number Diff line number Diff line change
Expand Up @@ -239,8 +239,11 @@ static boolean isList(Class<?> cls) {
}

static boolean shouldIgnore(Field field) {
return field.getName().startsWith("this$")
return field.isSynthetic() // synthetic fields
|| field.getName().startsWith("this$")
|| field.getName().equals("$jacocoData") // used with Jacoco testing
|| field.getName().equals("$change") // used by Instant run in Android Studio
|| field.getName().equals("serialVersionUID")
|| field.getAnnotation(AsonIgnore.class) != null;
}

Expand Down

0 comments on commit 7c994b0

Please sign in to comment.