From 8dc9a9b1b4cf960bb868fbea72317c20373d0d72 Mon Sep 17 00:00:00 2001 From: Zixuan Liu Date: Tue, 19 Mar 2024 10:40:06 +0800 Subject: [PATCH] [cleanup][meta] Remove com.beust.jcommander.internal import (#22294) --- .../replication/AuditorBookieCheckTaskTest.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pulsar-metadata/src/test/java/org/apache/bookkeeper/replication/AuditorBookieCheckTaskTest.java b/pulsar-metadata/src/test/java/org/apache/bookkeeper/replication/AuditorBookieCheckTaskTest.java index d30af4de6a803..d151226992f3c 100644 --- a/pulsar-metadata/src/test/java/org/apache/bookkeeper/replication/AuditorBookieCheckTaskTest.java +++ b/pulsar-metadata/src/test/java/org/apache/bookkeeper/replication/AuditorBookieCheckTaskTest.java @@ -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; @@ -122,8 +122,8 @@ public void testAuditBookies() OpStatsLogger numUnderReplicatedLedgerStats = mock(OpStatsLogger.class); when(auditorStats.getNumUnderReplicatedLedger()).thenReturn(numUnderReplicatedLedgerStats); - final List availableBookies = Lists.newArrayList(); - final List readOnlyBookies = Lists.newArrayList(); + final List availableBookies = new ArrayList<>(); + final List readOnlyBookies = new ArrayList<>(); // test bookie1 lost availableBookies.add(BookieId.parse(bookieId2)); when(admin.getAvailableBookies()).thenReturn(availableBookies); @@ -144,7 +144,7 @@ public void testAuditBookies() } private Set getLedgers(long count) { - final Set ledgers = Sets.newHashSet(); + final Set ledgers = new HashSet<>(); for (int i = 0; i < count; i++) { ledgers.add(i + startLedgerId++); }