Author: dbrosius
Date: Tue Oct 15 06:00:57 2013
New Revision: 1532198

URL: http://svn.apache.org/r1532198
Log:
add hashCode()

Modified:
    
commons/proper/bcel/trunk/src/main/java/org/apache/bcel/generic/Instruction.java

Modified: 
commons/proper/bcel/trunk/src/main/java/org/apache/bcel/generic/Instruction.java
URL: 
http://svn.apache.org/viewvc/commons/proper/bcel/trunk/src/main/java/org/apache/bcel/generic/Instruction.java?rev=1532198&r1=1532197&r2=1532198&view=diff
==============================================================================
--- 
commons/proper/bcel/trunk/src/main/java/org/apache/bcel/generic/Instruction.java
 (original)
+++ 
commons/proper/bcel/trunk/src/main/java/org/apache/bcel/generic/Instruction.java
 Tue Oct 15 06:00:57 2013
@@ -553,4 +553,12 @@ public abstract class Instruction implem
     public boolean equals( Object that ) {
         return (that instanceof Instruction) ? cmp.equals(this, (Instruction) 
that) : false;
     }
+    
+    /** calculate the hashCode of this object
+     * @return the hashCode
+     */
+    @Override
+    public int hashCode() {
+        return opcode;
+    }
 }


Reply via email to