ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From maart...@apache.org
Subject svn commit: r1051692 - /ant/ivy/core/trunk/src/java/org/apache/ivy/plugins/parser/xml/XmlModuleDescriptorParser.java
Date Tue, 21 Dec 2010 23:01:17 GMT
Author: maartenc
Date: Tue Dec 21 23:01:16 2010
New Revision: 1051692

URL: http://svn.apache.org/viewvc?rev=1051692&view=rev
Log:
Always pass a Locale to String#toLowerCase() method calls.

Modified:
    ant/ivy/core/trunk/src/java/org/apache/ivy/plugins/parser/xml/XmlModuleDescriptorParser.java

Modified: ant/ivy/core/trunk/src/java/org/apache/ivy/plugins/parser/xml/XmlModuleDescriptorParser.java
URL: http://svn.apache.org/viewvc/ant/ivy/core/trunk/src/java/org/apache/ivy/plugins/parser/xml/XmlModuleDescriptorParser.java?rev=1051692&r1=1051691&r2=1051692&view=diff
==============================================================================
--- ant/ivy/core/trunk/src/java/org/apache/ivy/plugins/parser/xml/XmlModuleDescriptorParser.java
(original)
+++ ant/ivy/core/trunk/src/java/org/apache/ivy/plugins/parser/xml/XmlModuleDescriptorParser.java
Tue Dec 21 23:01:16 2010
@@ -26,6 +26,7 @@ import java.text.ParseException;
 import java.util.Arrays;
 import java.util.LinkedHashMap;
 import java.util.List;
+import java.util.Locale;
 import java.util.Map;
 
 import javax.xml.parsers.ParserConfigurationException;
@@ -391,7 +392,7 @@ public class XmlModuleDescriptorParser e
             ModuleDescriptor parent = null;
 
             String extendType = attributes.getValue("extendType") != null ? attributes.getValue(
-                "extendType").toLowerCase() : "all";
+                "extendType").toLowerCase(Locale.US) : "all";
 
             List/* <String> */extendTypes = Arrays.asList(extendType.split(","));
             ModuleId parentMid = new ModuleId(parentOrganisation, parentModule);



Mime
View raw message