dont use equalsIgnoreCase() for booleans

This commit is contained in:
zzz
2011-11-28 21:52:49 +00:00
parent d9dcb1e583
commit 8619fd2c05
14 changed files with 25 additions and 25 deletions

View File

@ -260,7 +260,7 @@ public class CPUID {
private static final void loadNative() {
try{
String wantedProp = System.getProperty("jcpuid.enable", "true");
boolean wantNative = "true".equalsIgnoreCase(wantedProp);
boolean wantNative = Boolean.valueOf(wantedProp).booleanValue();
if (wantNative) {
boolean loaded = loadGeneric();
if (loaded) {

View File

@ -460,7 +460,7 @@ public class NativeBigInteger extends BigInteger {
private static final void loadNative() {
try{
String wantedProp = System.getProperty("jbigi.enable", "true");
boolean wantNative = "true".equalsIgnoreCase(wantedProp);
boolean wantNative = Boolean.valueOf(wantedProp).booleanValue();
if (wantNative) {
debug("trying loadGeneric");
boolean loaded = loadGeneric("jbigi");