Skip to content

Commit dfc2ee9

Browse files
committed
fix: add hashCode implementation for RetryConfiguration.AnnotationClassOrMethodPointcut
1 parent 4886b75 commit dfc2ee9

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/main/java/org/springframework/retry/annotation/RetryConfiguration.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
import java.util.ArrayList;
2222
import java.util.LinkedHashSet;
2323
import java.util.List;
24+
import java.util.Objects;
2425
import java.util.Set;
2526
import java.util.concurrent.atomic.AtomicBoolean;
2627

@@ -242,6 +243,11 @@ public boolean equals(Object other) {
242243
return ObjectUtils.nullSafeEquals(this.methodResolver, otherAdvisor.methodResolver);
243244
}
244245

246+
@Override
247+
public int hashCode() {
248+
return Objects.hash(methodResolver);
249+
}
250+
245251
}
246252

247253
private final class AnnotationClassOrMethodFilter extends AnnotationClassFilter {

0 commit comments

Comments
 (0)