diff --git a/spring-boot-project/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/OperationResponseBody.java b/spring-boot-project/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/OperationResponseBody.java index 6901e543559..83974b4857a 100644 --- a/spring-boot-project/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/OperationResponseBody.java +++ b/spring-boot-project/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/OperationResponseBody.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2022 the original author or authors. + * Copyright 2012-2023 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. @@ -22,7 +22,7 @@ import com.fasterxml.jackson.databind.ObjectMapper; /** * Tagging interface used to indicate that an operation result is intended to be returned - * in the body of the response. Primarily intended to support JSON serialzation using an + * in the body of the response. Primarily intended to support JSON serialization using an * endpoint specific {@link ObjectMapper}. * * @author Phillip Webb @@ -31,7 +31,7 @@ import com.fasterxml.jackson.databind.ObjectMapper; public interface OperationResponseBody { /** - * Return a {@link OperationResponseBody} {@link Map} instance containing entires from + * Return a {@link OperationResponseBody} {@link Map} instance containing entries from * the given {@code map}. * @param the key type * @param the value type diff --git a/spring-boot-project/spring-boot-test/src/main/java/org/springframework/boot/test/context/runner/AbstractApplicationContextRunner.java b/spring-boot-project/spring-boot-test/src/main/java/org/springframework/boot/test/context/runner/AbstractApplicationContextRunner.java index a011778fdbd..635222f8c74 100644 --- a/spring-boot-project/spring-boot-test/src/main/java/org/springframework/boot/test/context/runner/AbstractApplicationContextRunner.java +++ b/spring-boot-project/spring-boot-test/src/main/java/org/springframework/boot/test/context/runner/AbstractApplicationContextRunner.java @@ -203,7 +203,7 @@ public abstract class AbstractApplicationContextRunner getUrlPrefixes() { return Collections.singleton("sap"); } + }, /** @@ -240,14 +242,18 @@ public enum DatabaseDriver { return name().toLowerCase(Locale.ENGLISH); } - protected boolean matchProductName(String productName) { - return this.productName != null && this.productName.equalsIgnoreCase(productName); - } - + /** + * Return the url prefixes of this driver. + * @return the url prefixes + */ protected Collection getUrlPrefixes() { return Collections.singleton(name().toLowerCase(Locale.ENGLISH)); } + protected boolean matchProductName(String productName) { + return this.productName != null && this.productName.equalsIgnoreCase(productName); + } + /** * Return the driver class name. * @return the class name or {@code null}