camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From davscl...@apache.org
Subject [5/8] camel git commit: Fixed CS. This closes #960
Date Tue, 26 Apr 2016 17:20:48 GMT
Fixed CS. This closes #960


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

Branch: refs/heads/master
Commit: d3c3929bed5ac47458b743385226fd10c9945b84
Parents: b0e8240
Author: Claus Ibsen <davsclaus@apache.org>
Authored: Tue Apr 26 19:19:25 2016 +0200
Committer: Claus Ibsen <davsclaus@apache.org>
Committed: Tue Apr 26 19:19:25 2016 +0200

----------------------------------------------------------------------
 .../dataformat/tarfile/SpringTarFileDataFormatTest.java      | 5 +++--
 .../java/org/apache/camel/dataformat/tarfile/TarUtils.java   | 8 +++++---
 2 files changed, 8 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/d3c3929b/components/camel-tarfile/src/test/java/org/apache/camel/dataformat/tarfile/SpringTarFileDataFormatTest.java
----------------------------------------------------------------------
diff --git a/components/camel-tarfile/src/test/java/org/apache/camel/dataformat/tarfile/SpringTarFileDataFormatTest.java
b/components/camel-tarfile/src/test/java/org/apache/camel/dataformat/tarfile/SpringTarFileDataFormatTest.java
index 90f3e02..e3a0df9 100644
--- a/components/camel-tarfile/src/test/java/org/apache/camel/dataformat/tarfile/SpringTarFileDataFormatTest.java
+++ b/components/camel-tarfile/src/test/java/org/apache/camel/dataformat/tarfile/SpringTarFileDataFormatTest.java
@@ -19,6 +19,9 @@ package org.apache.camel.dataformat.tarfile;
 import java.io.File;
 import java.util.concurrent.TimeUnit;
 
+import static java.nio.charset.StandardCharsets.UTF_8;
+import static java.util.Collections.singletonList;
+
 import org.apache.camel.Exchange;
 import org.apache.camel.builder.NotifyBuilder;
 import org.apache.camel.component.mock.MockEndpoint;
@@ -26,8 +29,6 @@ import org.apache.camel.test.spring.CamelSpringTestSupport;
 import org.junit.Test;
 import org.springframework.context.support.ClassPathXmlApplicationContext;
 
-import static java.nio.charset.StandardCharsets.UTF_8;
-import static java.util.Collections.singletonList;
 import static org.apache.camel.Exchange.FILE_NAME;
 import static org.apache.camel.dataformat.tarfile.TarUtils.TEXT;
 import static org.apache.camel.dataformat.tarfile.TarUtils.getBytes;

http://git-wip-us.apache.org/repos/asf/camel/blob/d3c3929b/components/camel-tarfile/src/test/java/org/apache/camel/dataformat/tarfile/TarUtils.java
----------------------------------------------------------------------
diff --git a/components/camel-tarfile/src/test/java/org/apache/camel/dataformat/tarfile/TarUtils.java
b/components/camel-tarfile/src/test/java/org/apache/camel/dataformat/tarfile/TarUtils.java
index aded0f5..df07907 100644
--- a/components/camel-tarfile/src/test/java/org/apache/camel/dataformat/tarfile/TarUtils.java
+++ b/components/camel-tarfile/src/test/java/org/apache/camel/dataformat/tarfile/TarUtils.java
@@ -27,6 +27,7 @@ import org.apache.commons.compress.archivers.tar.TarArchiveEntry;
 import org.apache.commons.compress.archivers.tar.TarArchiveOutputStream;
 
 final class TarUtils {
+
     static final String TEXT = "The Masque of Queen Bersabe (excerpt) \n"
             + "by: Algernon Charles Swinburne \n\n"
             + "My lips kissed dumb the word of Ah \n"
@@ -38,6 +39,10 @@ final class TarUtils {
             + "For lust towards the kings that came \n"
             + "With horsemen riding royally.";
 
+    private TarUtils() {
+        // Prevent instantiation
+    }
+
     static byte[] getTaredText(String entryName) throws IOException {
         ByteArrayInputStream bais = new ByteArrayInputStream(TEXT.getBytes("UTF-8"));
         ByteArrayOutputStream baos = new ByteArrayOutputStream();
@@ -65,7 +70,4 @@ final class TarUtils {
         return baos.toByteArray();
     }
 
-    private TarUtils() {
-        // Prevent instantiation
-    }
 }


Mime
View raw message