Compare magic string values with equalsIgnoreCase.

This commit is contained in:
Steven Smith 2016-06-28 13:34:26 -07:00
parent 065ba4eea0
commit 8b1b94cb7c

View file

@ -834,6 +834,12 @@ public class MagicValues {
if(num.doubleValue() == num2.doubleValue()) {
return (T) key;
}
} else if(String.class.isAssignableFrom(val.getClass()) && String.class.isAssignableFrom(value.getClass())) {
String str = (String) val;
String str2 = (String) value;
if(str.equalsIgnoreCase(str2)) {
return (T) key;
}
}
}
}