Skip to content

Commit

Permalink
Cleanup SnapshotsInProgress for Readability (#71620) (#71852)
Browse files Browse the repository at this point in the history
* Formatting `SnapshotsInProgress` in a more reasonable way instead of mixing nested class, fields and methods.
* Removing pointless constants for the x-content serialization.
* Cleaning up double wrapping in `unmodifiableList`.
* Removing unused and incorrectly documented constructor from `SnapshotDeletionsInProgress`
  • Loading branch information
original-brownbear authored Apr 19, 2021
1 parent a8edef4 commit fa645e1
Show file tree
Hide file tree
Showing 4 changed files with 676 additions and 711 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,14 +71,6 @@ private static boolean assertNoConcurrentDeletionsForSameRepository(List<Entry>
return true;
}

/**
* Returns a new instance of {@link SnapshotDeletionsInProgress} with the given
* {@link Entry} added.
*/
public static SnapshotDeletionsInProgress newInstance(Entry entry) {
return new SnapshotDeletionsInProgress(Collections.singletonList(entry));
}

/**
* Returns a new instance of {@link SnapshotDeletionsInProgress} which adds
* the given {@link Entry} to the invoking instance.
Expand Down
Loading

0 comments on commit fa645e1

Please sign in to comment.