commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bode...@apache.org
Subject [1/3] commons-compress git commit: whitespace
Date Mon, 07 May 2018 14:26:12 GMT
Repository: commons-compress
Updated Branches:
  refs/heads/COMPRESS-452 [created] aa7ff9805


whitespace


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

Branch: refs/heads/COMPRESS-452
Commit: aa7ff980504517710c6e7e3a146250fa1714217a
Parents: 237e172
Author: Stefan Bodewig <bodewig@apache.org>
Authored: Mon May 7 08:09:14 2018 +0200
Committer: Stefan Bodewig <bodewig@apache.org>
Committed: Mon May 7 16:25:46 2018 +0200

----------------------------------------------------------------------
 .../archivers/sevenz/SevenZFileTest.java        | 30 ++++++++++----------
 1 file changed, 15 insertions(+), 15 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/commons-compress/blob/aa7ff980/src/test/java/org/apache/commons/compress/archivers/sevenz/SevenZFileTest.java
----------------------------------------------------------------------
diff --git a/src/test/java/org/apache/commons/compress/archivers/sevenz/SevenZFileTest.java
b/src/test/java/org/apache/commons/compress/archivers/sevenz/SevenZFileTest.java
index 6ad7224..776ad4d 100644
--- a/src/test/java/org/apache/commons/compress/archivers/sevenz/SevenZFileTest.java
+++ b/src/test/java/org/apache/commons/compress/archivers/sevenz/SevenZFileTest.java
@@ -307,21 +307,21 @@ public class SevenZFileTest extends AbstractTestCase {
     }
 
     private void test7zUnarchive(SevenZFile sevenZFile, final SevenZMethod m) throws Exception
{
-            SevenZArchiveEntry entry = sevenZFile.getNextEntry();
-            assertEquals("test1.xml", entry.getName());
-            assertEquals(m, entry.getContentMethods().iterator().next().getMethod());
-            entry = sevenZFile.getNextEntry();
-            assertEquals("test2.xml", entry.getName());
-            assertEquals(m, entry.getContentMethods().iterator().next().getMethod());
-            final byte[] contents = new byte[(int) entry.getSize()];
-            int off = 0;
-            while ((off < contents.length)) {
-                final int bytesRead = sevenZFile.read(contents, off, contents.length - off);
-                assert (bytesRead >= 0);
-                off += bytesRead;
-            }
-            assertEquals(TEST2_CONTENT, new String(contents, "UTF-8"));
-            assertNull(sevenZFile.getNextEntry());
+        SevenZArchiveEntry entry = sevenZFile.getNextEntry();
+        assertEquals("test1.xml", entry.getName());
+        assertEquals(m, entry.getContentMethods().iterator().next().getMethod());
+        entry = sevenZFile.getNextEntry();
+        assertEquals("test2.xml", entry.getName());
+        assertEquals(m, entry.getContentMethods().iterator().next().getMethod());
+        final byte[] contents = new byte[(int) entry.getSize()];
+        int off = 0;
+        while ((off < contents.length)) {
+            final int bytesRead = sevenZFile.read(contents, off, contents.length - off);
+            assert (bytesRead >= 0);
+            off += bytesRead;
+        }
+        assertEquals(TEST2_CONTENT, new String(contents, "UTF-8"));
+        assertNull(sevenZFile.getNextEntry());
     }
 
     private void checkHelloWorld(final String filename) throws Exception {


Mime
View raw message