Skip to content

Polish gh-30013 #30785

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 30, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
/**
* Default implementation for {@link ScheduledTaskObservationConvention}.
* @author Brian Clozel
* @since 6.1.0
* @since 6.1
*/
public class DefaultScheduledTaskObservationConvention implements ScheduledTaskObservationConvention {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
* Context that holds information for observation metadata collection
* during the {@link ScheduledTaskObservationDocumentation#TASKS_SCHEDULED_EXECUTION execution of scheduled tasks}.
* @author Brian Clozel
* @since 6.1.0
* @since 6.1
*/
public class ScheduledTaskObservationContext extends Observation.Context {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
* Interface for an {@link ObservationConvention} for
* {@link ScheduledTaskObservationDocumentation#TASKS_SCHEDULED_EXECUTION scheduled task executions}.
* @author Brian Clozel
* @since 6.1.0
* @since 6.1
*/
public interface ScheduledTaskObservationConvention extends ObservationConvention<ScheduledTaskObservationContext> {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
* <p>This class is used by automated tools to document KeyValues attached to the {@code @Scheduled} observations.
*
* @author Brian Clozel
* @since 6.1.0
* @since 6.1
*/
public enum ScheduledTaskObservationDocumentation implements ObservationDocumentation {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ public TaskScheduler getScheduler() {

/**
* Return the {@link ObservationRegistry} for this registrar.
* @since 6.1.0
* @since 6.1
*/
@Nullable
public ObservationRegistry getObservationRegistry() {
Expand All @@ -147,7 +147,7 @@ public ObservationRegistry getObservationRegistry() {

/**
* Configure an {@link ObservationRegistry} to record observations for scheduled tasks.
* @since 6.1.0
* @since 6.1
*/
public void setObservationRegistry(@Nullable ObservationRegistry observationRegistry) {
this.observationRegistry = observationRegistry;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public class ScheduledMethodRunnable implements Runnable {
* @param target the target instance to call the method on
* @param method the target method to call
* @param observationRegistrySupplier a supplier for the observation registry to use
* @since 6.1.0
* @since 6.1
*/
public ScheduledMethodRunnable(Object target, Method method, Supplier<ObservationRegistry> observationRegistrySupplier) {
this.target = target;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ public ForwardedHeaderTransformer getForwardedHeaderTransformer() {
}

/**
* Configure a {@link ObservationRegistry} for recording server exchange observations.
* Configure an {@link ObservationRegistry} for recording server exchange observations.
* By default, a {@link ObservationRegistry#NOOP no-op} instance will be used.
* @param observationRegistry the observation registry to use
* @since 6.1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@ public boolean hasForwardedHeaderTransformer() {
}

/**
* Configure a {@link ObservationRegistry} for recording server exchange observations.
* Configure an {@link ObservationRegistry} for recording server exchange observations.
* By default, a {@link ObservationRegistry#NOOP no-op} registry will be configured.
* @param observationRegistry the observation registry
* @since 6.1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@ public class ExceptionHandlingWebHandler extends WebHandlerDecorator {
/**
* Name of the {@link ServerWebExchange#getAttributes() attribute} that
* contains the exception handled by {@link WebExceptionHandler WebExceptionHandlers}.
* @since 6.0.8
* @since 6.1
*/
public static String HANDLED_WEB_EXCEPTION = ExceptionHandlingWebHandler.class.getSimpleName() + ".handledException";
public static final String HANDLED_WEB_EXCEPTION = ExceptionHandlingWebHandler.class.getSimpleName() + ".handledException";

private final List<WebExceptionHandler> exceptionHandlers;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ private static class HttpStatusSuccessStubWebHandler implements WebHandler {

private Optional<ServerRequestObservationContext> observationContext;

public HttpStatusSuccessStubWebHandler(HttpStatus responseStatus) {
HttpStatusSuccessStubWebHandler(HttpStatus responseStatus) {
this.responseStatus = responseStatus;
}

Expand Down