Repository: camel
Updated Branches:
  refs/heads/master 5a4f1f392 -> 5336f1153


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/5336f115
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/5336f115
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/5336f115

Branch: refs/heads/master
Commit: 5336f1153f908c6c57f7ac3b30215c6f449bbeb2
Parents: 5a4f1f3
Author: Franz Forsthofer <franz.forstho...@sap.com>
Authored: Tue Oct 4 13:50:41 2016 +0200
Committer: Franz Forsthofer <franz.forstho...@sap.com>
Committed: Tue Oct 4 13:50:41 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/5336f115/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