harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sjanu...@apache.org
Subject svn commit: r689427 - /harmony/enhanced/classlib/trunk/modules/pack200/src/main/java/org/apache/harmony/unpack200/bytecode/ClassConstantPool.java
Date Wed, 27 Aug 2008 09:28:33 GMT
Author: sjanuary
Date: Wed Aug 27 02:28:32 2008
New Revision: 689427

URL: http://svn.apache.org/viewvc?rev=689427&view=rev
Log:
Apply patch for HARMONY-5931 ([classlib][pack200][performance] Some ClassConstantPool content
may not be needed)

Modified:
    harmony/enhanced/classlib/trunk/modules/pack200/src/main/java/org/apache/harmony/unpack200/bytecode/ClassConstantPool.java

Modified: harmony/enhanced/classlib/trunk/modules/pack200/src/main/java/org/apache/harmony/unpack200/bytecode/ClassConstantPool.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/pack200/src/main/java/org/apache/harmony/unpack200/bytecode/ClassConstantPool.java?rev=689427&r1=689426&r2=689427&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/pack200/src/main/java/org/apache/harmony/unpack200/bytecode/ClassConstantPool.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/pack200/src/main/java/org/apache/harmony/unpack200/bytecode/ClassConstantPool.java
Wed Aug 27 02:28:32 2008
@@ -49,6 +49,9 @@
     private boolean resolved;
 
     public ClassFileEntry add(ClassFileEntry entry) {
+        if (entry instanceof ByteCode) {
+            return null;
+        }
         if (entry instanceof ConstantPoolEntry) {
             if (entriesContainsSet.add(entry)) {
                 entries.add(entry);



Mime
View raw message