< prev index next >

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

Print this page

        

@@ -19,45 +19,51 @@
  * limitations under the License.
  */
 
 package com.sun.org.apache.bcel.internal.generic;
 
-
 /**
  * IF_ACMPEQ - Branch if reference comparison succeeds
  *
  * <PRE>Stack: ..., value1, value2 -&gt; ...</PRE>
  *
- * @author  <A HREF="mailto:markus.dahm@berlin.de">M. Dahm</A>
+ * @version $Id: IF_ACMPEQ.java 1747278 2016-06-07 17:28:43Z britter $
  */
 public class IF_ACMPEQ extends IfInstruction {
+
   /**
    * Empty constructor needed for the Class.newInstance() statement in
    * Instruction.readInstruction(). Not to be used otherwise.
    */
-  IF_ACMPEQ() {}
+    IF_ACMPEQ() {
+    }
 
-  public IF_ACMPEQ(InstructionHandle target) {
-    super(com.sun.org.apache.bcel.internal.Constants.IF_ACMPEQ, target);
+
+    public IF_ACMPEQ(final InstructionHandle target) {
+        super(com.sun.org.apache.bcel.internal.Const.IF_ACMPEQ, target);
   }
 
+
   /**
    * @return negation of instruction
    */
+    @Override
   public IfInstruction negate() {
-    return new IF_ACMPNE(target);
+        return new IF_ACMPNE(super.getTarget());
   }
 
+
   /**
    * Call corresponding visitor method(s). The order is:
    * Call visitor methods of implemented interfaces first, then
    * call methods according to the class hierarchy in descending order,
    * i.e., the most specific visitXXX() call comes last.
    *
    * @param v Visitor object
    */
-  public void accept(Visitor v) {
+    @Override
+    public void accept( final Visitor v ) {
     v.visitStackConsumer(this);
     v.visitBranchInstruction(this);
     v.visitIfInstruction(this);
     v.visitIF_ACMPEQ(this);
   }
< prev index next >