This is an automated email from the ASF dual-hosted git repository. davsclaus pushed a commit to branch camel-3.22.x in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/camel-3.22.x by this push: new 5cdcc8af6e4 Fix CS 5cdcc8af6e4 is described below commit 5cdcc8af6e482259e12eeae0f4056e87f0f5b8c8 Author: Claus Ibsen <claus.ib...@gmail.com> AuthorDate: Thu Apr 25 13:00:14 2024 +0200 Fix CS --- .../apache/camel/jsonpath/JsonPathSplitSingleListOptionTest.java | 6 +++--- .../apache/camel/processor/idempotent/kafka/KafkaConsumerUtil.java | 5 ++++- .../kafka/integration/KafkaBreakOnFirstErrorReleaseResourcesIT.java | 6 +++--- 3 files changed, 10 insertions(+), 7 deletions(-) diff --git a/components/camel-jsonpath/src/test/java/org/apache/camel/jsonpath/JsonPathSplitSingleListOptionTest.java b/components/camel-jsonpath/src/test/java/org/apache/camel/jsonpath/JsonPathSplitSingleListOptionTest.java index 822560d23ee..04945084c5c 100644 --- a/components/camel-jsonpath/src/test/java/org/apache/camel/jsonpath/JsonPathSplitSingleListOptionTest.java +++ b/components/camel-jsonpath/src/test/java/org/apache/camel/jsonpath/JsonPathSplitSingleListOptionTest.java @@ -16,15 +16,15 @@ */ package org.apache.camel.jsonpath; +import java.io.File; +import java.util.Map; + import com.jayway.jsonpath.Option; import org.apache.camel.builder.RouteBuilder; import org.apache.camel.component.mock.MockEndpoint; import org.apache.camel.test.junit5.CamelTestSupport; import org.junit.jupiter.api.Test; -import java.io.File; -import java.util.Map; - import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertNotNull; import static org.junit.jupiter.api.Assertions.assertTrue; diff --git a/components/camel-kafka/src/main/java/org/apache/camel/processor/idempotent/kafka/KafkaConsumerUtil.java b/components/camel-kafka/src/main/java/org/apache/camel/processor/idempotent/kafka/KafkaConsumerUtil.java index fdcef5e4d13..90caa8e4168 100644 --- a/components/camel-kafka/src/main/java/org/apache/camel/processor/idempotent/kafka/KafkaConsumerUtil.java +++ b/components/camel-kafka/src/main/java/org/apache/camel/processor/idempotent/kafka/KafkaConsumerUtil.java @@ -24,7 +24,10 @@ import org.apache.camel.util.ObjectHelper; import org.apache.kafka.clients.consumer.Consumer; import org.apache.kafka.common.TopicPartition; -public class KafkaConsumerUtil { +public final class KafkaConsumerUtil { + + private KafkaConsumerUtil() { + } /** * Tests whether the Kafka consumer reached the target offsets for all specified topic partitions. diff --git a/components/camel-kafka/src/test/java/org/apache/camel/component/kafka/integration/KafkaBreakOnFirstErrorReleaseResourcesIT.java b/components/camel-kafka/src/test/java/org/apache/camel/component/kafka/integration/KafkaBreakOnFirstErrorReleaseResourcesIT.java index 5c0df557f0f..a7ee5029d1f 100644 --- a/components/camel-kafka/src/test/java/org/apache/camel/component/kafka/integration/KafkaBreakOnFirstErrorReleaseResourcesIT.java +++ b/components/camel-kafka/src/test/java/org/apache/camel/component/kafka/integration/KafkaBreakOnFirstErrorReleaseResourcesIT.java @@ -16,6 +16,9 @@ */ package org.apache.camel.component.kafka.integration; +import java.util.*; +import java.util.concurrent.TimeUnit; + import org.apache.camel.Endpoint; import org.apache.camel.EndpointInject; import org.apache.camel.Exchange; @@ -36,9 +39,6 @@ import org.junit.jupiter.api.Test; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -import java.util.*; -import java.util.concurrent.TimeUnit; - import static org.junit.Assert.assertTrue; import static org.junit.jupiter.api.Assertions.assertEquals;