harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hinde...@apache.org
Subject svn commit: r702871 - /harmony/enhanced/classlib/trunk/modules/pack200/src/main/java/org/apache/harmony/pack200/ClassBands.java
Date Wed, 08 Oct 2008 13:37:51 GMT
Author: hindessm
Date: Wed Oct  8 06:37:50 2008
New Revision: 702871

URL: http://svn.apache.org/viewvc?rev=702871&view=rev
Log:
Use the more efficient indexOf method.

Modified:
    harmony/enhanced/classlib/trunk/modules/pack200/src/main/java/org/apache/harmony/pack200/ClassBands.java

Modified: harmony/enhanced/classlib/trunk/modules/pack200/src/main/java/org/apache/harmony/pack200/ClassBands.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/pack200/src/main/java/org/apache/harmony/pack200/ClassBands.java?rev=702871&r1=702870&r2=702871&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/pack200/src/main/java/org/apache/harmony/pack200/ClassBands.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/pack200/src/main/java/org/apache/harmony/pack200/ClassBands.java
Wed Oct  8 06:37:50 2008
@@ -387,8 +387,8 @@
     }
 
     protected static int countArgs(String descriptor) {
-        int bra = descriptor.indexOf("(");
-        int ket = descriptor.indexOf(")");
+        int bra = descriptor.indexOf('(');
+        int ket = descriptor.indexOf(')');
         if (bra == -1 || ket == -1 || ket < bra)
             throw new IllegalArgumentException("No arguments");
 



Mime
View raw message