sanity checking

This commit is contained in:
jrandom
2005-08-21 18:37:57 +00:00
committed by zzz
parent b1dd29e64d
commit ea41a90eae

View File

@@ -142,7 +142,7 @@ public class Base64 {
} }
public static void main(String[] args) { public static void main(String[] args) {
test(); //test();
if (args.length == 0) { if (args.length == 0) {
help(); help();
return; return;
@@ -399,6 +399,7 @@ public class Base64 {
* replacing / with ~, and + with - * replacing / with ~, and + with -
*/ */
private static byte[] safeDecode(String source, boolean useStandardAlphabet) { private static byte[] safeDecode(String source, boolean useStandardAlphabet) {
if (source == null) return null;
String toDecode = null; String toDecode = null;
if (useStandardAlphabet) { if (useStandardAlphabet) {
toDecode = source; toDecode = source;