Skip to content

Commit

Permalink
Register composed annotations explicitly
Browse files Browse the repository at this point in the history
Closes gh-31919
  • Loading branch information
snicoll committed Jul 29, 2022
1 parent 0e9f8a5 commit db0e008
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
import org.springframework.boot.actuate.endpoint.annotation.EndpointExtension;
import org.springframework.boot.actuate.endpoint.annotation.ReadOperation;
import org.springframework.boot.actuate.endpoint.annotation.WriteOperation;
import org.springframework.core.annotation.SynthesizedAnnotation;

/**
* {@link RuntimeHintsRegistrar} for actuator support.
Expand All @@ -37,11 +36,10 @@ class ActuatorAnnotationsRuntimeHints implements RuntimeHintsRegistrar {

@Override
public void registerHints(RuntimeHints hints, ClassLoader classLoader) {
Stream.of(Endpoint.class, ReadOperation.class, WriteOperation.class, DeleteOperation.class,
EndpointExtension.class)
Stream.of(ReadOperation.class, WriteOperation.class, DeleteOperation.class)
.forEach((annotationType) -> RuntimeHintsUtils.registerAnnotation(hints, annotationType));
Stream.of(Endpoint.class, EndpointExtension.class).forEach(
(annotationType) -> hints.proxies().registerJdkProxy(annotationType, SynthesizedAnnotation.class));
Stream.of(Endpoint.class, EndpointExtension.class)
.forEach((annotationType) -> RuntimeHintsUtils.registerComposableAnnotation(hints, annotationType));
}

}

0 comments on commit db0e008

Please sign in to comment.