camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From forstho...@apache.org
Subject camel git commit: CAMEL-10368: Unused deflater in ZipDataFormat
Date Tue, 04 Oct 2016 12:00:06 GMT
Repository: camel
Updated Branches:
  refs/heads/camel-2.18.x 54a02453f -> 244eb0387


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

Branch: refs/heads/camel-2.18.x
Commit: 244eb03876bb4e7d95b04b4f4ae48322e47e3bb4
Parents: 54a0245
Author: Franz Forsthofer <franz.forsthofer@sap.com>
Authored: Tue Oct 4 13:59:42 2016 +0200
Committer: Franz Forsthofer <franz.forsthofer@sap.com>
Committed: Tue Oct 4 13:59:42 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/244eb038/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 {


Mime
View raw message