You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by ba...@apache.org on 2008/05/11 00:46:43 UTC
svn commit: r655204 -
/commons/proper/collections/trunk/src/java/org/apache/commons/collections/ExtendedProperties.java
Author: bayard
Date: Sat May 10 15:46:43 2008
New Revision: 655204
URL: http://svn.apache.org/viewvc?rev=655204&view=rev
Log:
Applying one of Benjamin's fixes from COLLETIONS-294. testBoolean goes on to look for English
Modified:
commons/proper/collections/trunk/src/java/org/apache/commons/collections/ExtendedProperties.java
Modified: commons/proper/collections/trunk/src/java/org/apache/commons/collections/ExtendedProperties.java
URL: http://svn.apache.org/viewvc/commons/proper/collections/trunk/src/java/org/apache/commons/collections/ExtendedProperties.java?rev=655204&r1=655203&r2=655204&view=diff
==============================================================================
--- commons/proper/collections/trunk/src/java/org/apache/commons/collections/ExtendedProperties.java (original)
+++ commons/proper/collections/trunk/src/java/org/apache/commons/collections/ExtendedProperties.java Sat May 10 15:46:43 2008
@@ -31,6 +31,7 @@
import java.util.Hashtable;
import java.util.Iterator;
import java.util.List;
+import java.util.Locale;
import java.util.Map;
import java.util.NoSuchElementException;
import java.util.Properties;
@@ -1238,7 +1239,7 @@
* text maps to a boolean value, or <code>null</code> otherwise.
*/
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")) {
return "true";