This is an automated email from the ASF dual-hosted git repository. bodewig pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/commons-compress.git
commit 7d4e6b213ff87ca61982a7c55a7869ba99fabcd0 Author: Stefan Bodewig <bode...@apache.org> AuthorDate: Sun Aug 18 17:04:19 2019 +0200 whitespace --- .../commons/compress/utils/MultiReadOnlySeekableByteChannel.java | 2 +- .../compress/utils/MultiReadOnlySeekableByteChannelTest.java | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/main/java/org/apache/commons/compress/utils/MultiReadOnlySeekableByteChannel.java b/src/main/java/org/apache/commons/compress/utils/MultiReadOnlySeekableByteChannel.java index fd78f9d..e9c86ee 100644 --- a/src/main/java/org/apache/commons/compress/utils/MultiReadOnlySeekableByteChannel.java +++ b/src/main/java/org/apache/commons/compress/utils/MultiReadOnlySeekableByteChannel.java @@ -143,7 +143,7 @@ public class MultiReadOnlySeekableByteChannel implements SeekableByteChannel { public int write(ByteBuffer src) { throw new NonWritableChannelException(); } - + @Override public synchronized SeekableByteChannel position(long newPosition) throws IOException { if (newPosition < 0) { diff --git a/src/test/java/org/apache/commons/compress/utils/MultiReadOnlySeekableByteChannelTest.java b/src/test/java/org/apache/commons/compress/utils/MultiReadOnlySeekableByteChannelTest.java index 0892077..a405ed8 100644 --- a/src/test/java/org/apache/commons/compress/utils/MultiReadOnlySeekableByteChannelTest.java +++ b/src/test/java/org/apache/commons/compress/utils/MultiReadOnlySeekableByteChannelTest.java @@ -46,13 +46,13 @@ public class MultiReadOnlySeekableByteChannelTest { thrown.expect(NullPointerException.class); new MultiReadOnlySeekableByteChannel(null); } - + @Test public void forSeekableByteChannelsThrowsOnNullArg() { thrown.expect(NullPointerException.class); MultiReadOnlySeekableByteChannel.forSeekableByteChannels(null); } - + @Test public void forFilesThrowsOnNullArg() throws IOException { thrown.expect(NullPointerException.class); @@ -80,13 +80,13 @@ public class MultiReadOnlySeekableByteChannelTest { public void checkForSingleByte() throws IOException { check(new byte[] { 0 }); } - + @Test public void checkForString() throws IOException { check("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789" .getBytes(StandardCharsets.UTF_8)); } - + @Test public void verifyGrouped() { Assert.assertArrayEquals(new byte[][] {