harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From telli...@apache.org
Subject svn commit: r1000705 - /harmony/enhanced/java/trunk/classlib/modules/luni/src/main/java/java/net/SocketPermission.java
Date Fri, 24 Sep 2010 04:55:30 GMT
Author: tellison
Date: Fri Sep 24 04:55:30 2010
New Revision: 1000705

URL: http://svn.apache.org/viewvc?rev=1000705&view=rev
Log:
Socket permission action names are ascii, so use a simpler lowercasing method.

Modified:
    harmony/enhanced/java/trunk/classlib/modules/luni/src/main/java/java/net/SocketPermission.java

Modified: harmony/enhanced/java/trunk/classlib/modules/luni/src/main/java/java/net/SocketPermission.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/java/trunk/classlib/modules/luni/src/main/java/java/net/SocketPermission.java?rev=1000705&r1=1000704&r2=1000705&view=diff
==============================================================================
--- harmony/enhanced/java/trunk/classlib/modules/luni/src/main/java/java/net/SocketPermission.java
(original)
+++ harmony/enhanced/java/trunk/classlib/modules/luni/src/main/java/java/net/SocketPermission.java
Fri Sep 24 04:55:30 2010
@@ -25,6 +25,7 @@ import java.security.Permission;
 import java.security.PermissionCollection;
 
 import org.apache.harmony.luni.util.Inet6Util;
+import org.apache.harmony.luni.util.Util;
 import org.apache.harmony.luni.internal.nls.Messages;
 
 /**
@@ -222,7 +223,7 @@ public final class SocketPermission exte
             if (pos == length) {
                 parsing = false;
             }
-            action = sb.toString().trim().toLowerCase();
+            action = Util.toASCIILowerCase(sb.toString().trim());
             if (action.equals(actionNames[SP_CONNECT])) {
                 actionsMask |= SP_CONNECT;
             } else if (action.equals(actionNames[SP_LISTEN])) {



Mime
View raw message