commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bay...@apache.org
Subject svn commit: r655204 - /commons/proper/collections/trunk/src/java/org/apache/commons/collections/ExtendedProperties.java
Date Sat, 10 May 2008 22:46:43 GMT
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";



Mime
View raw message