Applying one of Benjamin's fixes from COLLETIONS-294. testBoolean goes on to look for English
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@655204 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
ad76d4face
commit
d72bf81d8b
|
@ -31,6 +31,7 @@ import java.util.Enumeration;
|
||||||
import java.util.Hashtable;
|
import java.util.Hashtable;
|
||||||
import java.util.Iterator;
|
import java.util.Iterator;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
import java.util.Locale;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import java.util.NoSuchElementException;
|
import java.util.NoSuchElementException;
|
||||||
import java.util.Properties;
|
import java.util.Properties;
|
||||||
|
@ -1238,7 +1239,7 @@ public class ExtendedProperties extends Hashtable {
|
||||||
* text maps to a boolean value, or <code>null</code> otherwise.
|
* text maps to a boolean value, or <code>null</code> otherwise.
|
||||||
*/
|
*/
|
||||||
public String testBoolean(String value) {
|
public String testBoolean(String value) {
|
||||||
String s = value.toLowerCase();
|
String s = value.toLowerCase(Locale.ENGLISH);
|
||||||
|
|
||||||
if (s.equals("true") || s.equals("on") || s.equals("yes")) {
|
if (s.equals("true") || s.equals("on") || s.equals("yes")) {
|
||||||
return "true";
|
return "true";
|
||||||
|
|
Loading…
Reference in New Issue