Skip to content

Commit 076dee8

Browse files
committed
Revision based on review from @adutra
1 parent 16d606c commit 076dee8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

runtime/service/src/main/java/org/apache/polaris/service/events/listeners/ConcurrentLinkedQueueWithApproximateSize.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
import java.util.concurrent.atomic.AtomicInteger;
2424
import java.util.stream.Stream;
2525

26-
public class ConcurrentLinkedQueueWithApproximateSize<T> {
26+
class ConcurrentLinkedQueueWithApproximateSize<T> {
2727
private final ConcurrentLinkedQueue<T> queue = new ConcurrentLinkedQueue<>();
2828
private final AtomicInteger size = new AtomicInteger();
2929

runtime/service/src/test/java/org/apache/polaris/service/events/listeners/InMemoryBufferPolarisPersistenceEventListenerTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ public void testProcessEventIsThreadSafe() throws Exception {
199199
"Exceptions occurred in concurrent processEvent: ", exceptions.peek());
200200
}
201201

202-
ArgumentCaptor<List<PolarisEvent>> eventsCaptor = ArgumentCaptor.forClass(List.class);
202+
ArgumentCaptor<List<PolarisEvent>> eventsCaptor = ArgumentCaptor.captor();
203203
verify(polarisMetaStoreManager, atLeastOnce()).writeEvents(any(), eventsCaptor.capture());
204204
Awaitility.await("expected amount of records should be processed")
205205
.atMost(Duration.ofSeconds(30))

0 commit comments

Comments
 (0)