harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From telli...@apache.org
Subject svn commit: r1001744 - /harmony/enhanced/java/trunk/classlib/modules/luni/src/main/java/java/net/URLClassLoader.java
Date Mon, 27 Sep 2010 13:56:34 GMT
Author: tellison
Date: Mon Sep 27 13:56:33 2010
New Revision: 1001744

URL: http://svn.apache.org/viewvc?rev=1001744&view=rev
Log:
Replace toLowerCase invocation with simpler ASCII only version.

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

Modified: harmony/enhanced/java/trunk/classlib/modules/luni/src/main/java/java/net/URLClassLoader.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/java/trunk/classlib/modules/luni/src/main/java/java/net/URLClassLoader.java?rev=1001744&r1=1001743&r2=1001744&view=diff
==============================================================================
--- harmony/enhanced/java/trunk/classlib/modules/luni/src/main/java/java/net/URLClassLoader.java
(original)
+++ harmony/enhanced/java/trunk/classlib/modules/luni/src/main/java/java/net/URLClassLoader.java
Mon Sep 27 13:56:33 2010
@@ -47,6 +47,7 @@ import java.util.jar.JarFile;
 import java.util.jar.Manifest;
 
 import org.apache.harmony.luni.internal.nls.Messages;
+import org.apache.harmony.luni.util.Util;
 
 /**
  * This class loader is responsible for loading classes and resources from a
@@ -1145,12 +1146,12 @@ public class URLClassLoader extends Secu
     private boolean isSealed(Manifest manifest, String dirName) {
         Attributes mainAttributes = manifest.getMainAttributes();
         String value = mainAttributes.getValue(Attributes.Name.SEALED);
-        boolean sealed = value != null && value.toLowerCase().equals("true"); //$NON-NLS-1$
+        boolean sealed = value != null && Util.toASCIILowerCase(value).equals("true");
//$NON-NLS-1$
         Attributes attributes = manifest.getAttributes(dirName);
         if (attributes != null) {
             value = attributes.getValue(Attributes.Name.SEALED);
             if (value != null) {
-                sealed = value.toLowerCase().equals("true"); //$NON-NLS-1$
+                sealed = Util.toASCIILowerCase(value).equals("true"); //$NON-NLS-1$
             }
         }
         return sealed;



Mime
View raw message