Repository: camel
Updated Branches:
  refs/heads/camel-2.17.x 88c84e599 -> b0d37a924


CAMEL-10368: Unused deflater in ZipDataFormat

Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/b0d37a92
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/b0d37a92
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/b0d37a92

Branch: refs/heads/camel-2.17.x
Commit: b0d37a924e862f404001af053b1b75ffdc109a1a
Parents: 88c84e5
Author: Franz Forsthofer <franz.forstho...@sap.com>
Authored: Tue Oct 4 14:02:08 2016 +0200
Committer: Franz Forsthofer <franz.forstho...@sap.com>
Committed: Tue Oct 4 14:02:08 2016 +0200

----------------------------------------------------------------------
 camel-core/src/main/java/org/apache/camel/impl/ZipDataFormat.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/b0d37a92/camel-core/src/main/java/org/apache/camel/impl/ZipDataFormat.java
----------------------------------------------------------------------
diff --git a/camel-core/src/main/java/org/apache/camel/impl/ZipDataFormat.java 
b/camel-core/src/main/java/org/apache/camel/impl/ZipDataFormat.java
index 4bd00ad..be61e43 100644
--- a/camel-core/src/main/java/org/apache/camel/impl/ZipDataFormat.java
+++ b/camel-core/src/main/java/org/apache/camel/impl/ZipDataFormat.java
@@ -62,7 +62,7 @@ public class ZipDataFormat extends 
org.apache.camel.support.ServiceSupport imple
         final InputStream is = 
exchange.getContext().getTypeConverter().mandatoryConvertTo(InputStream.class, 
exchange, graph);
 
         final Deflater deflater = new Deflater(compressionLevel);
-        final DeflaterOutputStream zipOutput = new 
DeflaterOutputStream(stream, new Deflater(compressionLevel));
+        final DeflaterOutputStream zipOutput = new 
DeflaterOutputStream(stream, deflater);
         try {
             IOHelper.copy(is, zipOutput);
         } finally {

Reply via email to