Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
askwang committed Aug 23, 2024
1 parent a44d7fb commit 5389eee
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -682,8 +682,7 @@ public static int findPreviousSnapshot(List<Snapshot> sortedSnapshots, long targ
return -1;
}

private static int findNextOrEqualTag(
List<Snapshot> sortedSnapshots, long targetSnapshotId) {
private static int findNextOrEqualTag(List<Snapshot> sortedSnapshots, long targetSnapshotId) {
for (int i = 0; i < sortedSnapshots.size(); i++) {
if (sortedSnapshots.get(i).id() >= targetSnapshotId) {
return i;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,8 @@ public void testOverlappedSnapshots() {
int beginInclusive = 10, endExclusive = 15;
// overlapped snapshot is [11,12]
List<Snapshot> overlappedSnapshots =
SnapshotManager.findOverlappedSnapshots(taggedSnapshot, beginInclusive, endExclusive);
SnapshotManager.findOverlappedSnapshots(
taggedSnapshot, beginInclusive, endExclusive);
List<Long> overlappedIds =
overlappedSnapshots.stream().map(Snapshot::id).collect(Collectors.toList());
assertThat(overlappedIds).containsExactly(11L, 12L);
Expand Down

0 comments on commit 5389eee

Please sign in to comment.