harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sjanu...@apache.org
Subject svn commit: r720468 - in /harmony/enhanced/classlib/trunk/modules/pack200/src/main/java/org/apache/harmony/unpack200: BcBands.java bytecode/forms/ReferenceForm.java
Date Tue, 25 Nov 2008 11:25:47 GMT
Author: sjanuary
Date: Tue Nov 25 03:25:46 2008
New Revision: 720468

URL: http://svn.apache.org/viewvc?rev=720468&view=rev
Log:
Pack200 - minor code cleanup

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

Modified: harmony/enhanced/classlib/trunk/modules/pack200/src/main/java/org/apache/harmony/unpack200/BcBands.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/pack200/src/main/java/org/apache/harmony/unpack200/BcBands.java?rev=720468&r1=720467&r2=720468&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/pack200/src/main/java/org/apache/harmony/unpack200/BcBands.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/pack200/src/main/java/org/apache/harmony/unpack200/BcBands.java
Tue Nov 25 03:25:46 2008
@@ -355,8 +355,6 @@
                 bcEscRefCount);
         bcEscSize = decodeBandInt("bc_escsize", in, Codec.UNSIGNED5, bcEscCount);
         bcEscByte = decodeBandInt("bc_escbyte", in, Codec.BYTE1, bcEscSize);
-
-
     }
 
     public void unpack() throws Pack200Exception {

Modified: harmony/enhanced/classlib/trunk/modules/pack200/src/main/java/org/apache/harmony/unpack200/bytecode/forms/ReferenceForm.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/pack200/src/main/java/org/apache/harmony/unpack200/bytecode/forms/ReferenceForm.java?rev=720468&r1=720467&r2=720468&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/pack200/src/main/java/org/apache/harmony/unpack200/bytecode/forms/ReferenceForm.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/pack200/src/main/java/org/apache/harmony/unpack200/bytecode/forms/ReferenceForm.java
Tue Nov 25 03:25:46 2008
@@ -43,6 +43,9 @@
         ClassFileEntry[] nested = null;
         nested = new ClassFileEntry[] { globalPool.getConstantPoolEntry(
                 getPoolID(), offset) };
+        if(nested[0] == null) {
+            throw new NullPointerException("Null nested entries are not allowed");
+        }
         byteCode.setNested(nested);
         byteCode.setNestedPositions(new int[][] { { 0, 2 } });
     }



Mime
View raw message