Made sure debug mode is turned off if no, false, or 0 is specified.

This commit is contained in:
Trustin Lee 2008-08-21 05:46:49 +00:00
parent 5ac5611e51
commit ff8f148990

View File

@ -46,7 +46,14 @@ public class DebugUtil {
value = null; value = null;
} }
return value != null; if (value == null) {
return false;
}
value = value.trim().toUpperCase();
return !value.startsWith("N") &&
!value.startsWith("F") &&
!value.equals("0");
} }
private DebugUtil() { private DebugUtil() {