Last active
July 13, 2020 15:47
-
-
Save elibroftw/02ada4d55c06fc5851225bebe3a3c997 to your computer and use it in GitHub Desktop.
Javers Example 2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ... | |
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