< prev index next >

src/java.xml/share/classes/com/sun/org/apache/bcel/internal/generic/LDC_W.java

Print this page

        

@@ -20,36 +20,41 @@
  */
 
 package com.sun.org.apache.bcel.internal.generic;
 
 import java.io.IOException;
+
 import com.sun.org.apache.bcel.internal.util.ByteSequence;
 
 /**
  * LDC_W - Push item from constant pool (wide index)
  *
  * <PRE>Stack: ... -&gt; ..., item.word1, item.word2</PRE>
  *
- * @author  <A HREF="mailto:markus.dahm@berlin.de">M. Dahm</A>
+ * @version $Id: LDC_W.java 1747278 2016-06-07 17:28:43Z britter $
  */
 public class LDC_W extends LDC {
+
   /**
    * Empty constructor needed for the Class.newInstance() statement in
    * Instruction.readInstruction(). Not to be used otherwise.
    */
-  LDC_W() {}
+    LDC_W() {
+    }
 
-  public LDC_W(int index) {
+
+    public LDC_W(final int index) {
     super(index);
   }
 
+
   /**
    * Read needed data (i.e., index) from file.
    */
-  protected void initFromFile(ByteSequence bytes, boolean wide)
-       throws IOException
-  {
+    @Override
+    protected void initFromFile( final ByteSequence bytes, final boolean wide ) throws IOException {
     setIndex(bytes.readUnsignedShort());
     // Override just in case it has been changed
-    opcode = com.sun.org.apache.bcel.internal.Constants.LDC_W;
+        super.setOpcode(com.sun.org.apache.bcel.internal.Const.LDC_W);
+        super.setLength(3);
   }
 }
< prev index next >