Skip to content

Commit

Permalink
Make DiffableUtils.diff implementation agnostic
Browse files Browse the repository at this point in the history
DiffableUtils has methods for reading and creating diffs of maps. The
two implementation types, a JDK Map or ImmutableOpenMap, have different
methods and implementations. However, the format of the diff is always
the same, so the diff creation can be shared. This commit creates an
internal MapBuilder abstraction to allow both Map and ImmutableOpenMap
to produce diffs from the same MapDiff implementation.

relates elastic#86239
  • Loading branch information
rjernst committed Jul 9, 2022
1 parent 74a1e3e commit 6983303
Show file tree
Hide file tree
Showing 4 changed files with 139 additions and 194 deletions.
Loading

0 comments on commit 6983303

Please sign in to comment.