#71389: Use String.toUpperCase(Locale.ENGLISH) in stringToKey and stringToKeys. apisupport_50u1_javahelp_merged_20060226 release55_merge1
authormslama@netbeans.org
Wed, 25 Jan 2006 12:35:54 +0000
changeset 117eaefef6f8c3c
parent 116 1f64f6694d19
child 118 ff26ebd8a88e
#71389: Use String.toUpperCase(Locale.ENGLISH) in stringToKey and stringToKeys.
openide.util/src/org/openide/util/Utilities.java
     1.1 --- a/openide.util/src/org/openide/util/Utilities.java	Wed Jan 18 05:23:05 2006 +0000
     1.2 +++ b/openide.util/src/org/openide/util/Utilities.java	Wed Jan 25 12:35:54 2006 +0000
     1.3 @@ -7,7 +7,7 @@
     1.4   * http://www.sun.com/
     1.5   *
     1.6   * The Original Code is NetBeans. The Initial Developer of the Original
     1.7 - * Code is Sun Microsystems, Inc. Portions Copyright 1997-2005 Sun
     1.8 + * Code is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun
     1.9   * Microsystems, Inc. All Rights Reserved.
    1.10   */
    1.11  
    1.12 @@ -1637,7 +1637,7 @@
    1.13      * @return key description object, or <code>null</code> if the string does not represent any valid key
    1.14      */
    1.15      public static KeyStroke stringToKey(String s) {
    1.16 -        StringTokenizer st = new StringTokenizer(s.toUpperCase(), "-", true); // NOI18N
    1.17 +        StringTokenizer st = new StringTokenizer(s.toUpperCase(Locale.ENGLISH), "-", true); // NOI18N
    1.18  
    1.19          int needed = 0;
    1.20  
    1.21 @@ -1737,7 +1737,7 @@
    1.22      * @see #stringToKey
    1.23      */
    1.24      public static KeyStroke[] stringToKeys(String s) {
    1.25 -        StringTokenizer st = new StringTokenizer(s.toUpperCase(), " "); // NOI18N
    1.26 +        StringTokenizer st = new StringTokenizer(s.toUpperCase(Locale.ENGLISH), " "); // NOI18N
    1.27          ArrayList arr = new ArrayList();
    1.28  
    1.29          while (st.hasMoreElements()) {