Add @AliasFor annotation to EndpointCloudFoundryExtension

See gh-35716
This commit is contained in:
Bernardo Bulgarelli
2023-06-03 19:03:49 -03:00
committed by Moritz Halbritter
parent 2927d50d18
commit 51afaa79a7

View File

@@ -24,6 +24,7 @@ import java.lang.annotation.Target;
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 @@ public @interface EndpointCloudFoundryExtension {
* 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();
}