commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1199904 - /commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/compressors/gzip/GzipCompressorInputStream.java
Date Wed, 09 Nov 2011 18:23:55 GMT
Author: sebb
Date: Wed Nov  9 18:23:54 2011
New Revision: 1199904

URL: http://svn.apache.org/viewvc?rev=1199904&view=rev
Log:
Avoid "empty flow control statement" warning

Modified:
    commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/compressors/gzip/GzipCompressorInputStream.java

Modified: commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/compressors/gzip/GzipCompressorInputStream.java
URL: http://svn.apache.org/viewvc/commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/compressors/gzip/GzipCompressorInputStream.java?rev=1199904&r1=1199903&r2=1199904&view=diff
==============================================================================
--- commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/compressors/gzip/GzipCompressorInputStream.java
(original)
+++ commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/compressors/gzip/GzipCompressorInputStream.java
Wed Nov  9 18:23:54 2011
@@ -175,11 +175,11 @@ public class GzipCompressorInputStream e
 
         // Original file name, ignored
         if ((flg & FNAME) != 0)
-            while (inData.readUnsignedByte() != 0x00) ;
+            while (inData.readUnsignedByte() != 0x00) {}
 
         // Comment, ignored
         if ((flg & FCOMMENT) != 0)
-            while (inData.readUnsignedByte() != 0x00) ;
+            while (inData.readUnsignedByte() != 0x00) {}
 
         // Header "CRC16" which is actually a truncated CRC32 (which isn't
         // as good as real CRC16). I don't know if any encoder implementation



Mime
View raw message