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/76123a4f Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/76123a4f Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/76123a4f Branch: refs/heads/camel-2.17.x Commit: 76123a4fee0074b59daa5b9e210cd50a23981d6b Parents: 49fd8ce Author: Claus Ibsen <davscl...@apache.org> Authored: Tue Apr 26 19:19:25 2016 +0200 Committer: Claus Ibsen <davscl...@apache.org> Committed: Tue Apr 26 19:20:33 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/76123a4f/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/76123a4f/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 - } }