Skip to content

Commit

Permalink
Fixed mistake I did in f1e9792 in hashCode
Browse files Browse the repository at this point in the history
- MethodKey represents a method for the annotation's point of view,
- class and package are used just to resolve the visibility of the method.

Signed-off-by: David Matějček <david.matejcek@omnifish.ee>
  • Loading branch information
dmatej committed Sep 18, 2022
1 parent 21870ec commit b7bef7e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ private MethodKey(Method m) {
// store className and classPackage as getters are native
this.className = m.getDeclaringClass().getName();
this.classPackage = m.getDeclaringClass().getPackage();
this.hashCode = Objects.hash(m.getName(), className);
this.hashCode = m.getName().hashCode();
}


Expand Down

0 comments on commit b7bef7e

Please sign in to comment.