diff --git a/extensions/kafka-client/runtime/src/main/java/io/quarkus/kafka/client/runtime/KafkaAdminClient.java b/extensions/kafka-client/runtime/src/main/java/io/quarkus/kafka/client/runtime/KafkaAdminClient.java index 1f4b6ac8f763da..e4fbf4dce9af66 100644 --- a/extensions/kafka-client/runtime/src/main/java/io/quarkus/kafka/client/runtime/KafkaAdminClient.java +++ b/extensions/kafka-client/runtime/src/main/java/io/quarkus/kafka/client/runtime/KafkaAdminClient.java @@ -55,10 +55,10 @@ public Collection getTopics() throws InterruptedException, Executi public Collection getConsumerGroups() throws InterruptedException, ExecutionException { var consumerGroupIds = client.listConsumerGroups().all().get().stream() - .map(ConsumerGroupListing::groupId) - .collect(Collectors.toList()); + .map(ConsumerGroupListing::groupId) + .collect(Collectors.toList()); return client.describeConsumerGroups(consumerGroupIds).all().get() - .values(); + .values(); } public boolean deleteTopic(final String name) { @@ -88,9 +88,9 @@ public Collection getAclInfo() throws InterruptedException, Executio } public Map describeTopics(final Collection topicNames) - throws InterruptedException, ExecutionException { + throws InterruptedException, ExecutionException { return client.describeTopics(topicNames) - .allTopicNames() - .get(); + .allTopicNames() + .get(); } } diff --git a/extensions/kafka-client/runtime/src/main/java/io/quarkus/kafka/client/runtime/devui/KafkaJsonRPCService.java b/extensions/kafka-client/runtime/src/main/java/io/quarkus/kafka/client/runtime/devui/KafkaJsonRPCService.java index 23469fd60eb4f9..b5fe4ebdd3fcf8 100644 --- a/extensions/kafka-client/runtime/src/main/java/io/quarkus/kafka/client/runtime/devui/KafkaJsonRPCService.java +++ b/extensions/kafka-client/runtime/src/main/java/io/quarkus/kafka/client/runtime/devui/KafkaJsonRPCService.java @@ -30,11 +30,12 @@ public List getTopics() throws InterruptedException, ExecutionExcept return kafkaUiUtils.getTopics(); } - public List createTopic(final String topicName, final int partitions, final int replications, Map configs) - throws InterruptedException, ExecutionException { + public List createTopic(final String topicName, final int partitions, final int replications, + Map configs) + throws InterruptedException, ExecutionException { KafkaCreateTopicRequest createTopicRequest = new KafkaCreateTopicRequest(topicName, partitions, (short) replications, - configs); + configs); boolean created = kafkaAdminClient.createTopic(createTopicRequest); if (created) { return kafkaUiUtils.getTopics(); @@ -59,8 +60,8 @@ public KafkaMessagePage topicMessages(final String topicName) throws ExecutionEx } public KafkaMessagePage createMessage(String topicName, Integer partition, String key, String value, - Map headers) - throws ExecutionException, InterruptedException { + Map headers) + throws ExecutionException, InterruptedException { if (partition < 0) partition = null; diff --git a/extensions/kafka-client/runtime/src/main/java/io/quarkus/kafka/client/runtime/devui/model/request/KafkaCreateTopicRequest.java b/extensions/kafka-client/runtime/src/main/java/io/quarkus/kafka/client/runtime/devui/model/request/KafkaCreateTopicRequest.java index 72e54ad933a297..883a6ba1ecaa4f 100644 --- a/extensions/kafka-client/runtime/src/main/java/io/quarkus/kafka/client/runtime/devui/model/request/KafkaCreateTopicRequest.java +++ b/extensions/kafka-client/runtime/src/main/java/io/quarkus/kafka/client/runtime/devui/model/request/KafkaCreateTopicRequest.java @@ -12,7 +12,7 @@ public KafkaCreateTopicRequest() { } public KafkaCreateTopicRequest(final String topicName, final Integer partitions, final Short replications, - final Map configs) { + final Map configs) { this.topicName = topicName; this.partitions = partitions; this.replications = replications;