commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bode...@apache.org
Subject [1/2] commons-compress git commit: whitespace
Date Sun, 08 Oct 2017 16:56:53 GMT
Repository: commons-compress
Updated Branches:
  refs/heads/master bbe4d51f7 -> c82dc1fc6


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/77beca12
Tree: http://git-wip-us.apache.org/repos/asf/commons-compress/tree/77beca12
Diff: http://git-wip-us.apache.org/repos/asf/commons-compress/diff/77beca12

Branch: refs/heads/master
Commit: 77beca12bc1e957b864c6f128238c40f758e2f54
Parents: bbe4d51
Author: Stefan Bodewig <bodewig@apache.org>
Authored: Sun Oct 8 18:47:52 2017 +0200
Committer: Stefan Bodewig <bodewig@apache.org>
Committed: Sun Oct 8 18:49:43 2017 +0200

----------------------------------------------------------------------
 .../archivers/tar/TarArchiveOutputStreamTest.java         | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/commons-compress/blob/77beca12/src/test/java/org/apache/commons/compress/archivers/tar/TarArchiveOutputStreamTest.java
----------------------------------------------------------------------
diff --git a/src/test/java/org/apache/commons/compress/archivers/tar/TarArchiveOutputStreamTest.java
b/src/test/java/org/apache/commons/compress/archivers/tar/TarArchiveOutputStreamTest.java
index b8d213b..e5f9fbd 100644
--- a/src/test/java/org/apache/commons/compress/archivers/tar/TarArchiveOutputStreamTest.java
+++ b/src/test/java/org/apache/commons/compress/archivers/tar/TarArchiveOutputStreamTest.java
@@ -652,13 +652,13 @@ public class TarArchiveOutputStreamTest extends AbstractTestCase {
             fail("should have thrown an illegal argument exception");
         } catch (IllegalArgumentException e) {
             //expected
-       }
+        }
         try {
             testPadding(0, fileName, contents);    // don't specify a block size -> use
minimum length
             fail("should have thrown an illegal argument exception");
         } catch (IllegalArgumentException e) {
             //expected
-       }
+        }
     }
 
     private void testPadding(int blockSize, String fileName, byte[] contents) throws IOException
{
@@ -666,7 +666,7 @@ public class TarArchiveOutputStreamTest extends AbstractTestCase {
         f.deleteOnExit();
         final FileOutputStream fos = new FileOutputStream(f);
         final TarArchiveOutputStream tos;
-        if(blockSize != -2) {
+        if (blockSize != -2) {
             tos = new TarArchiveOutputStream(fos, blockSize);
         } else {
             blockSize = 512;
@@ -679,11 +679,11 @@ public class TarArchiveOutputStreamTest extends AbstractTestCase {
         tos.write(contents);
         tos.closeArchiveEntry();
         tos.close();
-        int fileRecordsSize = (int)Math.ceil((double) contents.length / 512)*512;
+        int fileRecordsSize = (int) Math.ceil((double) contents.length / 512) * 512;
         final int headerSize = 512;
         final int endOfArchiveSize = 1024;
         int unpaddedSize = headerSize + fileRecordsSize + endOfArchiveSize;
-        int paddedSize = (int)Math.ceil((double)unpaddedSize/blockSize)*blockSize;
+        int paddedSize = (int) Math.ceil((double)unpaddedSize/blockSize)*blockSize;
         assertEquals(paddedSize, f.length());
     }
 


Mime
View raw message