This is an automated email from the ASF dual-hosted git repository. coheigea pushed a commit to branch camel-3.0.x in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/camel-3.0.x by this push: new 3d7b071 Fixing Netty warnings 3d7b071 is described below commit 3d7b071521db04eb9eda8190e160bd94b4cd1132 Author: Colm O hEigeartaigh <cohei...@apache.org> AuthorDate: Tue Feb 4 14:47:32 2020 +0100 Fixing Netty warnings --- .../org/apache/camel/component/netty/NettyConcurrentTest.java | 6 +++--- .../java/org/apache/camel/component/netty/NettyTCPAsyncTest.java | 4 ++-- .../org/apache/camel/component/netty/NettyTCPChainedTest.java | 4 ++-- .../camel/component/netty/NettyTransferExchangeOptionTest.java | 6 +++--- .../org/apache/camel/component/netty/ObjectSerializationTest.java | 8 ++++---- 5 files changed, 14 insertions(+), 14 deletions(-) diff --git a/components/camel-netty/src/test/java/org/apache/camel/component/netty/NettyConcurrentTest.java b/components/camel-netty/src/test/java/org/apache/camel/component/netty/NettyConcurrentTest.java index c30e841..64a15c2 100644 --- a/components/camel-netty/src/test/java/org/apache/camel/component/netty/NettyConcurrentTest.java +++ b/components/camel-netty/src/test/java/org/apache/camel/component/netty/NettyConcurrentTest.java @@ -26,6 +26,9 @@ import java.util.concurrent.Executors; import java.util.concurrent.Future; import java.util.concurrent.TimeUnit; +import io.netty.channel.ChannelHandler; +import io.netty.handler.codec.serialization.ClassResolvers; + import org.apache.camel.BindToRegistry; import org.apache.camel.Exchange; import org.apache.camel.Processor; @@ -37,9 +40,6 @@ import org.apache.camel.util.StopWatch; import org.junit.Ignore; import org.junit.Test; -import io.netty.channel.ChannelHandler; -import io.netty.handler.codec.serialization.ClassResolvers; - public class NettyConcurrentTest extends BaseNettyTest { @Test diff --git a/components/camel-netty/src/test/java/org/apache/camel/component/netty/NettyTCPAsyncTest.java b/components/camel-netty/src/test/java/org/apache/camel/component/netty/NettyTCPAsyncTest.java index c2a794f..10cc2d9 100644 --- a/components/camel-netty/src/test/java/org/apache/camel/component/netty/NettyTCPAsyncTest.java +++ b/components/camel-netty/src/test/java/org/apache/camel/component/netty/NettyTCPAsyncTest.java @@ -19,6 +19,8 @@ package org.apache.camel.component.netty; import java.io.FileInputStream; import java.io.InputStream; +import io.netty.channel.ChannelHandler; + import org.apache.camel.BindToRegistry; import org.apache.camel.EndpointInject; import org.apache.camel.Exchange; @@ -30,8 +32,6 @@ import org.apache.camel.converter.IOConverter; import org.apache.camel.util.IOHelper; import org.junit.Test; -import io.netty.channel.ChannelHandler; - public class NettyTCPAsyncTest extends BaseNettyTest { @EndpointInject("mock:result") protected MockEndpoint resultEndpoint; diff --git a/components/camel-netty/src/test/java/org/apache/camel/component/netty/NettyTCPChainedTest.java b/components/camel-netty/src/test/java/org/apache/camel/component/netty/NettyTCPChainedTest.java index e0f52d6..d2df52c 100644 --- a/components/camel-netty/src/test/java/org/apache/camel/component/netty/NettyTCPChainedTest.java +++ b/components/camel-netty/src/test/java/org/apache/camel/component/netty/NettyTCPChainedTest.java @@ -19,6 +19,8 @@ package org.apache.camel.component.netty; import java.io.FileInputStream; import java.io.InputStream; +import io.netty.channel.ChannelHandler; + import org.apache.camel.BindToRegistry; import org.apache.camel.EndpointInject; import org.apache.camel.Exchange; @@ -31,8 +33,6 @@ import org.apache.camel.util.IOHelper; import org.junit.Assert; import org.junit.Test; -import io.netty.channel.ChannelHandler; - /** * In this test we are checking that same netty endpoint can be safely called twice * in single route with reconnect. It requires for processing to be fully async otherwise diff --git a/components/camel-netty/src/test/java/org/apache/camel/component/netty/NettyTransferExchangeOptionTest.java b/components/camel-netty/src/test/java/org/apache/camel/component/netty/NettyTransferExchangeOptionTest.java index e3924ed..ebfc2d7 100644 --- a/components/camel-netty/src/test/java/org/apache/camel/component/netty/NettyTransferExchangeOptionTest.java +++ b/components/camel-netty/src/test/java/org/apache/camel/component/netty/NettyTransferExchangeOptionTest.java @@ -18,6 +18,9 @@ package org.apache.camel.component.netty; import java.nio.charset.Charset; +import io.netty.channel.ChannelHandler; +import io.netty.handler.codec.serialization.ClassResolvers; + import org.apache.camel.BindToRegistry; import org.apache.camel.Endpoint; import org.apache.camel.Exchange; @@ -30,9 +33,6 @@ import org.apache.camel.component.netty.codec.ObjectDecoder; import org.apache.camel.component.netty.codec.ObjectEncoder; import org.junit.Test; -import io.netty.channel.ChannelHandler; -import io.netty.handler.codec.serialization.ClassResolvers; - public class NettyTransferExchangeOptionTest extends BaseNettyTest { @Test diff --git a/components/camel-netty/src/test/java/org/apache/camel/component/netty/ObjectSerializationTest.java b/components/camel-netty/src/test/java/org/apache/camel/component/netty/ObjectSerializationTest.java index 3e3e4ec..94a2baf 100644 --- a/components/camel-netty/src/test/java/org/apache/camel/component/netty/ObjectSerializationTest.java +++ b/components/camel-netty/src/test/java/org/apache/camel/component/netty/ObjectSerializationTest.java @@ -19,6 +19,9 @@ package org.apache.camel.component.netty; import java.util.Date; import java.util.Properties; +import io.netty.channel.ChannelHandler; +import io.netty.handler.codec.serialization.ClassResolvers; + import org.apache.camel.BindToRegistry; import org.apache.camel.CamelExecutionException; import org.apache.camel.Exchange; @@ -30,9 +33,6 @@ import org.apache.camel.test.AvailablePortFinder; import org.junit.BeforeClass; import org.junit.Test; -import io.netty.channel.ChannelHandler; -import io.netty.handler.codec.serialization.ClassResolvers; - /** * Object Serialization is not allowed by default. However it can be enabled by adding specific encoders/decoders. */ @@ -94,7 +94,7 @@ public class ObjectSerializationTest extends BaseNettyTest { return new RouteBuilder() { @Override public void configure() throws Exception { - from("netty:tcp://localhost:{{port}}?sync=true") + from("netty:tcp://localhost:{{port}}?sync=true") .process(new Processor() { public void process(Exchange exchange) throws Exception { Object obj = exchange.getIn().getBody();