jaxp/src/com/sun/org/apache/bcel/internal/generic/BasicType.java

Print this page

        

@@ -95,10 +95,16 @@
     }
   }
 
   /** @return true if both type objects refer to the same type
    */
+  @Override
   public boolean equals(Object type) {
     return (type instanceof BasicType)?
       ((BasicType)type).type == this.type : false;
   }
+
+  @Override
+  public int hashCode() {
+      return type;
+  }
 }