commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r793703 - /commons/proper/codec/trunk/src/java/org/apache/commons/codec/binary/Base64InputStream.java
Date Mon, 13 Jul 2009 20:30:40 GMT
Author: ggregory
Date: Mon Jul 13 20:30:40 2009
New Revision: 793703

URL: http://svn.apache.org/viewvc?rev=793703&view=rev
Log:
Clean up: Unnecessarily nested statement.

Modified:
    commons/proper/codec/trunk/src/java/org/apache/commons/codec/binary/Base64InputStream.java

Modified: commons/proper/codec/trunk/src/java/org/apache/commons/codec/binary/Base64InputStream.java
URL: http://svn.apache.org/viewvc/commons/proper/codec/trunk/src/java/org/apache/commons/codec/binary/Base64InputStream.java?rev=793703&r1=793702&r2=793703&view=diff
==============================================================================
--- commons/proper/codec/trunk/src/java/org/apache/commons/codec/binary/Base64InputStream.java
(original)
+++ commons/proper/codec/trunk/src/java/org/apache/commons/codec/binary/Base64InputStream.java
Mon Jul 13 20:30:40 2009
@@ -105,9 +105,8 @@
         }
         if (r > 0) {
             return singleByte[0] < 0 ? 256 + singleByte[0] : singleByte[0];
-        } else {
-            return -1;
         }
+        return -1;
     }
 
     /**



Mime
View raw message