jaxws/src/share/classes/javax/activation/MailcapCommandMap.java
changeset 2678 57cf2a1c1a05
parent 8 474761f14bca
--- a/jaxws/src/share/classes/javax/activation/MailcapCommandMap.java	Wed Jul 05 16:49:07 2017 +0200
+++ b/jaxws/src/share/classes/javax/activation/MailcapCommandMap.java	Mon Apr 20 15:14:39 2009 -0700
@@ -348,7 +348,7 @@
     public synchronized CommandInfo[] getPreferredCommands(String mimeType) {
         List cmdList = new ArrayList();
         if (mimeType != null)
-            mimeType = mimeType.toLowerCase();
+            mimeType = mimeType.toLowerCase(Locale.ENGLISH);
 
         for (int i = 0; i < DB.length; i++) {
             if (DB[i] == null)
@@ -414,7 +414,7 @@
     public synchronized CommandInfo[] getAllCommands(String mimeType) {
         List cmdList = new ArrayList();
         if (mimeType != null)
-            mimeType = mimeType.toLowerCase();
+            mimeType = mimeType.toLowerCase(Locale.ENGLISH);
 
         for (int i = 0; i < DB.length; i++) {
             if (DB[i] == null)
@@ -468,7 +468,7 @@
     public synchronized CommandInfo getCommand(String mimeType,
                                                         String cmdName) {
         if (mimeType != null)
-            mimeType = mimeType.toLowerCase();
+            mimeType = mimeType.toLowerCase(Locale.ENGLISH);
 
         for (int i = 0; i < DB.length; i++) {
             if (DB[i] == null)
@@ -535,7 +535,7 @@
             LogSupport.log(
                 "MailcapCommandMap: createDataContentHandler for " + mimeType);
         if (mimeType != null)
-            mimeType = mimeType.toLowerCase();
+            mimeType = mimeType.toLowerCase(Locale.ENGLISH);
 
         for (int i = 0; i < DB.length; i++) {
             if (DB[i] == null)
@@ -652,7 +652,7 @@
     public synchronized String[] getNativeCommands(String mimeType) {
         List cmdList = new ArrayList();
         if (mimeType != null)
-            mimeType = mimeType.toLowerCase();
+            mimeType = mimeType.toLowerCase(Locale.ENGLISH);
 
         for (int i = 0; i < DB.length; i++) {
             if (DB[i] == null)