Skip to content

Instantly share code, notes, and snippets.

@elibroftw
Last active July 13, 2020 15:47
Show Gist options
  • Save elibroftw/02ada4d55c06fc5851225bebe3a3c997 to your computer and use it in GitHub Desktop.
Save elibroftw/02ada4d55c06fc5851225bebe3a3c997 to your computer and use it in GitHub Desktop.
Javers Example 2
// ...
Diff diff = differ.compare(left, right);
List<Change> changes = new ArrayList<>(diff.getChanges());
List<Change> ignoredChanges = diff.getPropertyChanges("comments");
for (Change ignoreChange : ignoredChanges) {
changes.remove(ignoreChange);
}
// ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment