From 0d7105805df6d4acb2c25c8373ecb17a577eebc5 Mon Sep 17 00:00:00 2001 From: Henning Poettker Date: Thu, 17 Nov 2022 17:35:25 +0100 Subject: [PATCH] Annotate `@EnableRetry` with `@AliasFor` --- .../org/springframework/retry/annotation/EnableRetry.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/org/springframework/retry/annotation/EnableRetry.java b/src/main/java/org/springframework/retry/annotation/EnableRetry.java index 6cec7aa..79cdc84 100644 --- a/src/main/java/org/springframework/retry/annotation/EnableRetry.java +++ b/src/main/java/org/springframework/retry/annotation/EnableRetry.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2013 the original author or authors. + * Copyright 2012-2022 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. @@ -24,6 +24,7 @@ import java.lang.annotation.Target; import org.springframework.context.annotation.EnableAspectJAutoProxy; import org.springframework.context.annotation.Import; +import org.springframework.core.annotation.AliasFor; /** * Global enabler for @Retryable annotations in Spring beans. If this is @@ -47,6 +48,7 @@ public @interface EnableRetry { * standard Java interface-based proxies. The default is {@code false}. * @return whether to proxy or not to proxy the class */ + @AliasFor(annotation = EnableAspectJAutoProxy.class) boolean proxyTargetClass() default false; }