commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1334518 - /commons/proper/net/trunk/src/main/java/org/apache/commons/net/util/Base64.java
Date Sat, 05 May 2012 22:11:06 GMT
Author: sebb
Date: Sat May  5 22:11:05 2012
New Revision: 1334518

URL: http://svn.apache.org/viewvc?rev=1334518&view=rev
Log:
Add default cases to switches

Modified:
    commons/proper/net/trunk/src/main/java/org/apache/commons/net/util/Base64.java

Modified: commons/proper/net/trunk/src/main/java/org/apache/commons/net/util/Base64.java
URL: http://svn.apache.org/viewvc/commons/proper/net/trunk/src/main/java/org/apache/commons/net/util/Base64.java?rev=1334518&r1=1334517&r2=1334518&view=diff
==============================================================================
--- commons/proper/net/trunk/src/main/java/org/apache/commons/net/util/Base64.java (original)
+++ commons/proper/net/trunk/src/main/java/org/apache/commons/net/util/Base64.java Sat May
 5 22:11:05 2012
@@ -478,6 +478,8 @@ public class Base64 {
                         buffer[pos++] = PAD;
                     }
                     break;
+                default:
+                    break;  // other values ignored
             }
             if (lineLength > 0 && pos > 0) {
                 System.arraycopy(lineSeparator, 0, buffer, pos, lineSeparator.length);
@@ -579,6 +581,8 @@ public class Base64 {
                     buffer[pos++] = (byte) ((x >> 16) & MASK_8BITS);
                     buffer[pos++] = (byte) ((x >> 8) & MASK_8BITS);
                     break;
+                default:
+                    break;  // other values ignored
             }
         }
     }



Mime
View raw message