From bece347987b0273a1228b7349172b85667853ce0 Mon Sep 17 00:00:00 2001 From: Mortitz Halbritter Date: Thu, 23 Mar 2023 22:53:54 -0700 Subject: [PATCH 1/2] Polish --- .../runner/AbstractApplicationContextRunner.java | 2 +- .../boot/builder/SpringApplicationBuilder.java | 2 +- .../boot/jdbc/DatabaseDriver.java | 16 +++++++++++----- 3 files changed, 13 insertions(+), 7 deletions(-) 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 82077b5d2d4..2bd51c122c3 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 @@ -253,7 +253,7 @@ public abstract class AbstractApplicationContextRunner getUrlPrefixes() { return Collections.singleton("sap"); } + }, /** @@ -248,14 +250,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} From 42187e7bff206e4cf1134026ee7eab2db71759cb Mon Sep 17 00:00:00 2001 From: Mortitz Halbritter Date: Thu, 23 Mar 2023 22:53:54 -0700 Subject: [PATCH 2/2] Polish --- .../boot/actuate/endpoint/OperationResponseBody.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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