Skip to content

Commit

Permalink
Cleanup SnapshotsInProgress for Readability (#71620)
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 13, 2021
1 parent b2caf4d commit e910b2d
Show file tree
Hide file tree
Showing 4 changed files with 631 additions and 665 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,14 +68,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 e910b2d

Please sign in to comment.