Repository: camel Updated Branches: refs/heads/master 96a2dcc00 -> d3c59647e
Polish the code of NettyConveter Project: http://git-wip-us.apache.org/repos/asf/camel/repo Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/8c5529fe Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/8c5529fe Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/8c5529fe Branch: refs/heads/master Commit: 8c5529fee7d84e236be71ffbb8ff71439a05152d Parents: 96a2dcc Author: Willem Jiang <willem.ji...@gmail.com> Authored: Fri Sep 5 17:09:17 2014 +0800 Committer: Willem Jiang <willem.ji...@gmail.com> Committed: Fri Sep 5 20:21:54 2014 +0800 ---------------------------------------------------------------------- .../java/org/apache/camel/component/netty4/NettyConverter.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/camel/blob/8c5529fe/components/camel-netty4/src/main/java/org/apache/camel/component/netty4/NettyConverter.java ---------------------------------------------------------------------- diff --git a/components/camel-netty4/src/main/java/org/apache/camel/component/netty4/NettyConverter.java b/components/camel-netty4/src/main/java/org/apache/camel/component/netty4/NettyConverter.java index 9278a18..bc8065e 100644 --- a/components/camel-netty4/src/main/java/org/apache/camel/component/netty4/NettyConverter.java +++ b/components/camel-netty4/src/main/java/org/apache/camel/component/netty4/NettyConverter.java @@ -79,7 +79,7 @@ public final class NettyConverter { } @Converter - public static ByteBuf toByteBuffer(byte[] bytes, Exchange exchange) { + public static ByteBuf toByteBuffer(byte[] bytes) { ByteBuf buf = ByteBufAllocator.DEFAULT.buffer(bytes.length); buf.writeBytes(bytes); return buf; @@ -94,7 +94,7 @@ public final class NettyConverter { } else { bytes = s.getBytes(); } - return toByteBuffer(bytes, exchange); + return toByteBuffer(bytes); } @Converter