JAL-3691 automatic insertion of Locale.ROOT to toUpperCase() and toLowerCase() and...
[jalview.git] / test / junit / extensions / PrivilegedAccessor.java
index 23f1c6e..c5c0f04 100644 (file)
@@ -15,6 +15,8 @@
  */
 package junit.extensions;
 
+import java.util.Locale;
+
 import java.lang.reflect.Array;
 import java.lang.reflect.Constructor;
 import java.lang.reflect.Field;
@@ -432,7 +434,7 @@ final class PrivilegedAccessor
       {
         return false;
       }
-      if (className.startsWith(className.substring(0, 1).toUpperCase()))
+      if (className.startsWith(className.substring(0, 1).toUpperCase(Locale.ROOT)))
       {
         return true;
       }