Skip to content

Commit

Permalink
Replace usage of transitive shaded dependency (#17194)
Browse files Browse the repository at this point in the history
Signed-off-by: Andrew Ross <andrross@amazon.com>
  • Loading branch information
andrross authored Jan 30, 2025
1 parent d601c37 commit 20a58eb
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@
import java.util.concurrent.TimeUnit;
import java.util.function.Function;

import org.testcontainers.shaded.com.google.common.collect.ImmutableMap;

import static org.awaitility.Awaitility.await;

public class KafkaUtils {
Expand Down Expand Up @@ -76,7 +74,7 @@ public static boolean checkTopicExistence(String topicName, String bootstrapServ

private static <Rep> Rep getAdminClient(String bootstrapServer, Function<AdminClient, Rep> function) {
AdminClient adminClient = KafkaAdminClient.create(
ImmutableMap.of(AdminClientConfig.BOOTSTRAP_SERVERS_CONFIG, bootstrapServer, AdminClientConfig.CLIENT_ID_CONFIG, "test")
Map.of(AdminClientConfig.BOOTSTRAP_SERVERS_CONFIG, bootstrapServer, AdminClientConfig.CLIENT_ID_CONFIG, "test")
);
try {
return function.apply(adminClient);
Expand Down

0 comments on commit 20a58eb

Please sign in to comment.