More clean up
authormarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Mon, 7 Dec 2009 17:22:24 +0000 (17:22 +0000)
committermarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Mon, 7 Dec 2009 17:22:24 +0000 (17:22 +0000)
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@888027 13f79535-47bb-0310-9956-ffa450edef68

java/org/apache/tomcat/util/bcel/Constants.java
java/org/apache/tomcat/util/bcel/classfile/ConstantPool.java
java/org/apache/tomcat/util/bcel/classfile/ConstantUtf8.java

index 3c23ec6..3adb995 100644 (file)
@@ -284,9 +284,7 @@ public interface Constants {
   public static final byte T_SHORT   = 9;
   /** Int data type. */
   public static final byte T_INT     = 10;
-
-  /** Object data type. */
-  public static final byte T_OBJECT    = 14;
+  
   
   /** Unknown data type. */
   public static final byte T_UNKNOWN   = 15;
index 98e0b10..c4059e5 100644 (file)
@@ -39,12 +39,7 @@ public class ConstantPool implements Cloneable, Serializable {
     private Constant[] constant_pool;
 
 
-    /**
-     * @param constant_pool Array of constants
-     */
-    public ConstantPool(Constant[] constant_pool) {
-        setConstantPool(constant_pool);
-    }
+    
 
 
     /**
@@ -274,18 +269,6 @@ public class ConstantPool implements Cloneable, Serializable {
     }
 
 
-    
-
-
-    /**
-     * @param constant_pool
-     */
-    public void setConstantPool( Constant[] constant_pool ) {
-        this.constant_pool = constant_pool;
-        constant_pool_count = (constant_pool == null) ? 0 : constant_pool.length;
-    }
-
-
     /**
      * @return String representation.
      */
index a1e1f99..654ce57 100644 (file)
@@ -51,16 +51,7 @@ public final class ConstantUtf8 extends Constant {
     }
 
 
-    /**
-     * @param bytes Data
-     */
-    public ConstantUtf8(String bytes) {
-        super(Constants.CONSTANT_Utf8);
-        if (bytes == null) {
-            throw new IllegalArgumentException("bytes must not be null!");
-        }
-        this.bytes = bytes;
-    }
+    
 
 
     /**