ppkarwasz commented on code in PR #699:
URL: https://github.com/apache/commons-compress/pull/699#discussion_r2303656824


##########
src/main/java/org/apache/commons/compress/compressors/bzip2/BZip2CompressorInputStream.java:
##########
@@ -42,10 +42,12 @@
  */
 public class BZip2CompressorInputStream extends CompressorInputStream 
implements BZip2Constants, InputStreamStatistics {
 
-    private static final class Data {
+    // package private for testing
+    static final class Data {
 
         // (with blockSize 900k)
         final boolean[] inUse = new boolean[256]; // 256 byte
+        private int inUseCount;

Review Comment:
   Looks like a good clarification. I initialized the value to `2` (its 
minimal) value to improve code readability in 
https://github.com/apache/commons-compress/pull/699/commits/cd028373331626843741066dd63c723fdc7a4bd8.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to