Skip to content

Commit

Permalink
Don't print ID differences
Browse files Browse the repository at this point in the history
  • Loading branch information
rpoet-jh committed Oct 9, 2023
1 parent 1ad8f60 commit 2edf834
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@ private List<String> getDifference(Object s1, Object s2, String grantId) {
getPassEntityDiffs((PassEntity) value1, (PassEntity) value2, values, field);
} else if (value1 instanceof List || value2 instanceof List) {
getListDiffs((List<PassEntity>) value1, (List<PassEntity>) value2, values, field);
} else if (!Objects.equals(value1, value2)) {
} else if (!field.getName().equals("id")
&& !Objects.equals(value1, value2)) {
values.add(field.getName() + ": " + value1 + " -> " + value2);
}
}
Expand Down

0 comments on commit 2edf834

Please sign in to comment.