harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sjanu...@apache.org
Subject svn commit: r773864 - /harmony/enhanced/classlib/trunk/modules/pack200/src/main/java/org/apache/harmony/pack200/Segment.java
Date Tue, 12 May 2009 12:32:34 GMT
Author: sjanuary
Date: Tue May 12 12:32:33 2009
New Revision: 773864

URL: http://svn.apache.org/viewvc?rev=773864&view=rev
Log:
Pack200 - minor optimisation

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

Modified: harmony/enhanced/classlib/trunk/modules/pack200/src/main/java/org/apache/harmony/pack200/Segment.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/pack200/src/main/java/org/apache/harmony/pack200/Segment.java?rev=773864&r1=773863&r2=773864&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/pack200/src/main/java/org/apache/harmony/pack200/Segment.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/pack200/src/main/java/org/apache/harmony/pack200/Segment.java
Tue May 12 12:32:33 2009
@@ -24,6 +24,7 @@
 
 import org.objectweb.asm.AnnotationVisitor;
 import org.objectweb.asm.Attribute;
+import org.objectweb.asm.ClassReader;
 import org.objectweb.asm.ClassVisitor;
 import org.objectweb.asm.FieldVisitor;
 import org.objectweb.asm.Label;
@@ -84,7 +85,11 @@
             Pack200ClassReader classReader = (Pack200ClassReader) iterator
                     .next();
             currentClassReader = classReader;
-            classReader.accept(this, 0);
+            int flags = ClassReader.SKIP_FRAMES;
+            if(stripDebug) {
+                flags |= ClassReader.SKIP_DEBUG;
+            }
+            classReader.accept(this, flags);
         }
     }
 



Mime
View raw message