Skip to content

Commit

Permalink
[cleanup][meta] Remove com.beust.jcommander.internal import (apache#2…
Browse files Browse the repository at this point in the history
  • Loading branch information
nodece authored Mar 19, 2024
1 parent 0c9d860 commit 8dc9a9b
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@
import static org.mockito.Mockito.verify;
import static org.mockito.Mockito.when;
import static org.testng.AssertJUnit.assertTrue;
import com.beust.jcommander.internal.Lists;
import com.beust.jcommander.internal.Sets;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;
Expand Down Expand Up @@ -122,8 +122,8 @@ public void testAuditBookies()
OpStatsLogger numUnderReplicatedLedgerStats = mock(OpStatsLogger.class);
when(auditorStats.getNumUnderReplicatedLedger()).thenReturn(numUnderReplicatedLedgerStats);

final List<BookieId> availableBookies = Lists.newArrayList();
final List<BookieId> readOnlyBookies = Lists.newArrayList();
final List<BookieId> availableBookies = new ArrayList<>();
final List<BookieId> readOnlyBookies = new ArrayList<>();
// test bookie1 lost
availableBookies.add(BookieId.parse(bookieId2));
when(admin.getAvailableBookies()).thenReturn(availableBookies);
Expand All @@ -144,7 +144,7 @@ public void testAuditBookies()
}

private Set<Long> getLedgers(long count) {
final Set<Long> ledgers = Sets.newHashSet();
final Set<Long> ledgers = new HashSet<>();
for (int i = 0; i < count; i++) {
ledgers.add(i + startLedgerId++);
}
Expand Down

0 comments on commit 8dc9a9b

Please sign in to comment.