…lines 1–48 unchanged (48 lines)
49 /**
50 * @return True if the input object is a DelegatingMethod which has an internal Method which is equal to the internal Method of this DelegatingMethod,
51 * or if the input object is a Method which is equal to the internal Method of this DelegatingMethod.
52 */
53 @Override
54 public boolean equals(Object o) {
55 if (this == o) {
56 return true;
57 }
58 if (o instanceof DelegatingMethod) {
59 DelegatingMethod that = (DelegatingMethod) o;
60 return method.equals(that.method);
61 } else {
62 return method.equals(o);
63 }
64 }
65
66 @Override
67 public int hashCode() {
68 return method.hashCode();
69 }
70}