From b4c90588d1b4aa90b473d577fe0819e56b7c5404 Mon Sep 17 00:00:00 2001 From: LazarevEvgeny Date: Mon, 23 Sep 2024 17:29:05 +0300 Subject: [PATCH] fix: add hashCode implementation for RetryConfiguration.AnnotationClassOrMethodPointcut --- .../retry/annotation/RetryConfiguration.java | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/main/java/org/springframework/retry/annotation/RetryConfiguration.java b/src/main/java/org/springframework/retry/annotation/RetryConfiguration.java index d2774369..5bf0f0a5 100644 --- a/src/main/java/org/springframework/retry/annotation/RetryConfiguration.java +++ b/src/main/java/org/springframework/retry/annotation/RetryConfiguration.java @@ -1,5 +1,5 @@ /* - * Copyright 2006-2023 the original author or authors. + * Copyright 2006-2024 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -21,6 +21,7 @@ import java.util.ArrayList; import java.util.LinkedHashSet; import java.util.List; +import java.util.Objects; import java.util.Set; import java.util.concurrent.atomic.AtomicBoolean; @@ -68,6 +69,7 @@ * @author Markus Heiden * @author Gary Russell * @author Yanming Zhou + * @author Evgeny Lazarev * @since 1.1 * */ @@ -242,6 +244,11 @@ public boolean equals(Object other) { return ObjectUtils.nullSafeEquals(this.methodResolver, otherAdvisor.methodResolver); } + @Override + public int hashCode() { + return Objects.hash(this.methodResolver); + } + } private final class AnnotationClassOrMethodFilter extends AnnotationClassFilter {