diff --git a/camel-k-runtime-knative/src/main/java/org/apache/camel/k/knative/customizer/KnativeSinkBindingContextCustomizer.java b/camel-k-runtime-knative/src/main/java/org/apache/camel/k/knative/customizer/KnativeSinkBindingContextCustomizer.java index 4dd2a539e..051195e9a 100644 --- a/camel-k-runtime-knative/src/main/java/org/apache/camel/k/knative/customizer/KnativeSinkBindingContextCustomizer.java +++ b/camel-k-runtime-knative/src/main/java/org/apache/camel/k/knative/customizer/KnativeSinkBindingContextCustomizer.java @@ -16,6 +16,12 @@ */ package org.apache.camel.k.knative.customizer; +import java.io.IOException; +import java.io.Reader; +import java.io.StringReader; +import java.util.HashMap; +import java.util.Optional; + import com.fasterxml.jackson.core.type.TypeReference; import org.apache.camel.CamelContext; import org.apache.camel.component.knative.spi.Knative; @@ -24,12 +30,6 @@ import org.apache.camel.k.annotation.Customizer; import org.apache.camel.util.ObjectHelper; -import java.io.IOException; -import java.io.Reader; -import java.io.StringReader; -import java.util.HashMap; -import java.util.Optional; - @Customizer("sinkbinding") public class KnativeSinkBindingContextCustomizer implements ContextCustomizer { diff --git a/camel-k-runtime-knative/src/main/java/org/apache/camel/k/loader/knative/KnativeSourceLoaderInterceptor.java b/camel-k-runtime-knative/src/main/java/org/apache/camel/k/loader/knative/KnativeSourceLoaderInterceptor.java index 3d9315a0a..ef303b84b 100644 --- a/camel-k-runtime-knative/src/main/java/org/apache/camel/k/loader/knative/KnativeSourceLoaderInterceptor.java +++ b/camel-k-runtime-knative/src/main/java/org/apache/camel/k/loader/knative/KnativeSourceLoaderInterceptor.java @@ -16,6 +16,9 @@ */ package org.apache.camel.k.loader.knative; +import java.util.List; +import java.util.Optional; + import org.apache.camel.CamelContext; import org.apache.camel.RoutesBuilder; import org.apache.camel.k.Source; @@ -27,9 +30,6 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; -import java.util.List; -import java.util.Optional; - @LoaderInterceptor("knative-source") public class KnativeSourceLoaderInterceptor implements SourceLoader.Interceptor { private static final Logger LOGGER = LoggerFactory.getLogger(KnativeSourceLoaderInterceptor.class); diff --git a/camel-k-runtime-knative/src/test/java/org/apache/camel/k/knative/customizer/KnativeSinkBindingCustomizerTest.java b/camel-k-runtime-knative/src/test/java/org/apache/camel/k/knative/customizer/KnativeSinkBindingCustomizerTest.java index edbbdcc0d..7dab46d51 100644 --- a/camel-k-runtime-knative/src/test/java/org/apache/camel/k/knative/customizer/KnativeSinkBindingCustomizerTest.java +++ b/camel-k-runtime-knative/src/test/java/org/apache/camel/k/knative/customizer/KnativeSinkBindingCustomizerTest.java @@ -16,6 +16,15 @@ */ package org.apache.camel.k.knative.customizer; +import java.nio.charset.StandardCharsets; +import java.util.ArrayList; +import java.util.Collection; +import java.util.Collections; +import java.util.List; +import java.util.Map; +import java.util.Properties; +import java.util.UUID; + import org.apache.camel.CamelContext; import org.apache.camel.RoutesBuilder; import org.apache.camel.builder.RouteBuilder; @@ -37,9 +46,6 @@ import org.apache.camel.k.test.AvailablePortFinder; import org.junit.jupiter.api.Test; -import java.nio.charset.StandardCharsets; -import java.util.*; - import static org.assertj.core.api.Assertions.assertThat; public class KnativeSinkBindingCustomizerTest {