From 51afaa79a7c36f3e61ae17be6ce6fa22edacd4f3 Mon Sep 17 00:00:00 2001 From: Bernardo Bulgarelli Date: Sat, 3 Jun 2023 19:03:49 -0300 Subject: [PATCH] Add @AliasFor annotation to EndpointCloudFoundryExtension See gh-35716 --- .../cloudfoundry/EndpointCloudFoundryExtension.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/spring-boot-project/spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/cloudfoundry/EndpointCloudFoundryExtension.java b/spring-boot-project/spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/cloudfoundry/EndpointCloudFoundryExtension.java index a9dd4e256f88..7889d7e19edd 100644 --- a/spring-boot-project/spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/cloudfoundry/EndpointCloudFoundryExtension.java +++ b/spring-boot-project/spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/cloudfoundry/EndpointCloudFoundryExtension.java @@ -24,6 +24,7 @@ import org.springframework.boot.actuate.endpoint.annotation.Endpoint; import org.springframework.boot.actuate.endpoint.annotation.EndpointExtension; +import org.springframework.core.annotation.AliasFor; /** * Identifies a type as being a Cloud Foundry specific extension for an @@ -43,6 +44,7 @@ * The class of the endpoint to provide a Cloud Foundry specific extension for. * @return the class of the endpoint to extend */ + @AliasFor(annotation = EndpointExtension.class, attribute = "endpoint") Class endpoint(); }