harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From apetre...@apache.org
Subject svn commit: r521227 - /harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util/PropertyPermission.java
Date Thu, 22 Mar 2007 11:49:22 GMT
Author: apetrenko
Date: Thu Mar 22 04:49:21 2007
New Revision: 521227

URL: http://svn.apache.org/viewvc?view=rev&rev=521227
Log:
Patch for HARMONY-3468 "[classlib][luni]toLowerCase in Constructor of PropertyPermission could
be optimized"

Modified:
    harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util/PropertyPermission.java

Modified: harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util/PropertyPermission.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util/PropertyPermission.java?view=diff&rev=521227&r1=521226&r2=521227
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util/PropertyPermission.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util/PropertyPermission.java
Thu Mar 22 04:49:21 2007
@@ -25,6 +25,8 @@
 import java.security.Permission;
 import java.security.PermissionCollection;
 
+import org.apache.harmony.luni.util.Util;
+
 /**
  * PropertyPermission objects represent permission to access system properties.
  */
@@ -48,7 +50,7 @@
     }
 
     private void decodeActions(String actions) {
-        StringTokenizer tokenizer = new StringTokenizer(actions.toLowerCase(),
+        StringTokenizer tokenizer = new StringTokenizer(Util.toASCIILowerCase(actions),
                 " \t\n\r,"); //$NON-NLS-1$
         while (tokenizer.hasMoreTokens()) {
             String token = tokenizer.nextToken();



Mime
View raw message