This is an automated email from the ASF dual-hosted git repository.

manikumar pushed a commit to branch 3.9
in repository https://gitbox.apache.org/repos/asf/kafka.git


The following commit(s) were added to refs/heads/3.9 by this push:
     new 26eec5a4883 MINOR: change map.of to Collections.singletonMap (#17878)
26eec5a4883 is described below

commit 26eec5a488371745dc8c32f926ed6e4273865348
Author: PoAn Yang <[email protected]>
AuthorDate: Wed Nov 20 23:33:41 2024 +0800

    MINOR: change map.of to Collections.singletonMap (#17878)
    
    Signed-off-by: PoAn Yang <[email protected]>
    
    Reviewers: Manikumar Reddy <[email protected]>
---
 core/src/test/java/kafka/log/remote/RemoteLogManagerTest.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/core/src/test/java/kafka/log/remote/RemoteLogManagerTest.java 
b/core/src/test/java/kafka/log/remote/RemoteLogManagerTest.java
index fd73c2f74d6..93197af95da 100644
--- a/core/src/test/java/kafka/log/remote/RemoteLogManagerTest.java
+++ b/core/src/test/java/kafka/log/remote/RemoteLogManagerTest.java
@@ -2566,7 +2566,7 @@ public class RemoteLogManagerTest {
     @Test
     public void testDeleteRetentionMsBiggerThanTimeMs() throws 
RemoteStorageException, ExecutionException, InterruptedException {
         // add 1 month to the current time to avoid flaky test
-        LogConfig mockLogConfig = new LogConfig(Map.of("retention.ms", 
time.milliseconds() + 24 * 30 * 60 * 60 * 1000L));
+        LogConfig mockLogConfig = new 
LogConfig(Collections.singletonMap("retention.ms", time.milliseconds() + 24 * 
30 * 60 * 60 * 1000L));
         when(mockLog.config()).thenReturn(mockLogConfig);
 
         RemoteLogManager.RLMExpirationTask leaderTask = remoteLogManager.new 
RLMExpirationTask(leaderTopicIdPartition);

Reply via email to