Boolean.parseBoolean() was apparently introduced in 1.5. Yay for orthogonality.

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3872 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Michael Bayne
2006-02-20 23:43:57 +00:00
parent a4fff6494f
commit 971b0bd079
@@ -92,12 +92,8 @@ public class DatabaseConfigRegistry extends ConfigRegistry
protected boolean getValue (String field, boolean defval) {
String value = (String)_data.get(field);
try {
if (value != null) {
return Boolean.parseBoolean(value);
}
} catch (Exception e) {
// ignore bogus values and return the default
if (value != null) {
return "true".equalsIgnoreCase(value);
}
return defval;
}