Skip to content

Commit 74b7ae2

Browse files
committed
Remove @Import(RetryConfiguration.class) from @Recover
Looks like that was a copy/paste artifact. The `@Recover` is for business method purpose. The `@Import(RetryConfiguration.class)` is done from the `@EnableRetry`
1 parent 97ca28f commit 74b7ae2

File tree

1 file changed

+1
-4
lines changed
  • src/main/java/org/springframework/retry/annotation

1 file changed

+1
-4
lines changed

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

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2013 the original author or authors.
2+
* Copyright 2012-2024 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -22,8 +22,6 @@
2222
import java.lang.annotation.RetentionPolicy;
2323
import java.lang.annotation.Target;
2424

25-
import org.springframework.context.annotation.Import;
26-
2725
/**
2826
* Annotation for a method invocation that is a recovery handler. A suitable recovery
2927
* handler has a first parameter of type Throwable (or a subtype of Throwable) and a
@@ -38,7 +36,6 @@
3836
*/
3937
@Target({ ElementType.METHOD, ElementType.TYPE })
4038
@Retention(RetentionPolicy.RUNTIME)
41-
@Import(RetryConfiguration.class)
4239
@Documented
4340
public @interface Recover {
4441

0 commit comments

Comments
 (0)