commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bode...@apache.org
Subject [2/3] commons-compress git commit: whitespace
Date Sun, 21 Jan 2018 13:30:41 GMT
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/0e1e80c2
Tree: http://git-wip-us.apache.org/repos/asf/commons-compress/tree/0e1e80c2
Diff: http://git-wip-us.apache.org/repos/asf/commons-compress/diff/0e1e80c2

Branch: refs/heads/master
Commit: 0e1e80c2ab0db3e66445b469cc7deeba8dc40864
Parents: 0367fb3
Author: Stefan Bodewig <bodewig@apache.org>
Authored: Sun Jan 21 14:26:21 2018 +0100
Committer: Stefan Bodewig <bodewig@apache.org>
Committed: Sun Jan 21 14:26:21 2018 +0100

----------------------------------------------------------------------
 .../compressors/deflate64/HuffmanDecoder.java   | 34 ++++++++++----------
 1 file changed, 17 insertions(+), 17 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/commons-compress/blob/0e1e80c2/src/main/java/org/apache/commons/compress/compressors/deflate64/HuffmanDecoder.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/commons/compress/compressors/deflate64/HuffmanDecoder.java
b/src/main/java/org/apache/commons/compress/compressors/deflate64/HuffmanDecoder.java
index 23a7236..dca3218 100644
--- a/src/main/java/org/apache/commons/compress/compressors/deflate64/HuffmanDecoder.java
+++ b/src/main/java/org/apache/commons/compress/compressors/deflate64/HuffmanDecoder.java
@@ -132,24 +132,24 @@ class HuffmanDecoder implements Closeable {
     public int decode(byte[] b, int off, int len) throws IOException {
         while (!finalBlock || state.hasData()) {
             if (state.state() == HuffmanState.INITIAL) {
-                    finalBlock = readBits(1) == 1;
-                    int mode = (int) readBits(2);
-                    switch (mode) {
-                        case 0:
-                            switchToUncompressedState();
-                            break;
-                        case 1:
-                            state = new HuffmanCodes(FIXED_CODES, FIXED_LITERALS, FIXED_DISTANCE);
-                            break;
-                        case 2:
-                            int[][] tables = readDynamicTables();
-                            state = new HuffmanCodes(DYNAMIC_CODES, tables[0], tables[1]);
-                            break;
-                        default:
-                            throw new IllegalStateException("Unsupported compression: " +
mode);
-                    }
+                finalBlock = readBits(1) == 1;
+                int mode = (int) readBits(2);
+                switch (mode) {
+                case 0:
+                    switchToUncompressedState();
+                    break;
+                case 1:
+                    state = new HuffmanCodes(FIXED_CODES, FIXED_LITERALS, FIXED_DISTANCE);
+                    break;
+                case 2:
+                    int[][] tables = readDynamicTables();
+                    state = new HuffmanCodes(DYNAMIC_CODES, tables[0], tables[1]);
+                    break;
+                default:
+                    throw new IllegalStateException("Unsupported compression: " + mode);
+                }
             } else {
-                    return state.read(b, off, len);
+                return state.read(b, off, len);
             }
         }
         return -1;


Mime
View raw message