Skip to content

Commit 3dbc3a1

Browse files
committed
Merge branch '3.0.x'
2 parents 4375f44 + 42187e7 commit 3dbc3a1

File tree

4 files changed

+16
-10
lines changed

4 files changed

+16
-10
lines changed

spring-boot-project/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/OperationResponseBody.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2022 the original author or authors.
2+
* Copyright 2012-2023 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -22,7 +22,7 @@
2222

2323
/**
2424
* Tagging interface used to indicate that an operation result is intended to be returned
25-
* in the body of the response. Primarily intended to support JSON serialzation using an
25+
* in the body of the response. Primarily intended to support JSON serialization using an
2626
* endpoint specific {@link ObjectMapper}.
2727
*
2828
* @author Phillip Webb
@@ -31,7 +31,7 @@
3131
public interface OperationResponseBody {
3232

3333
/**
34-
* Return a {@link OperationResponseBody} {@link Map} instance containing entires from
34+
* Return a {@link OperationResponseBody} {@link Map} instance containing entries from
3535
* the given {@code map}.
3636
* @param <K> the key type
3737
* @param <V> the value type

spring-boot-project/spring-boot-test/src/main/java/org/springframework/boot/test/context/runner/AbstractApplicationContextRunner.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ public SELF withSystemProperties(String... pairs) {
203203
/**
204204
* Customize the {@link ClassLoader} that the {@link ApplicationContext} should use
205205
* for resource loading and bean class loading.
206-
* @param classLoader the classloader to use (can be null to use the default)
206+
* @param classLoader the classloader to use (or {@code null} to use the default)
207207
* @return a new instance with the updated class loader
208208
* @see FilteredClassLoader
209209
*/

spring-boot-project/spring-boot/src/main/java/org/springframework/boot/builder/SpringApplicationBuilder.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ public SpringApplicationBuilder(ResourceLoader resourceLoader, Class<?>... sourc
106106
* Creates a new {@link SpringApplication} instance from the given sources using the
107107
* given {@link ResourceLoader}. Subclasses may override in order to provide a custom
108108
* subclass of {@link SpringApplication}.
109-
* @param resourceLoader the resource loader (can be null)
109+
* @param resourceLoader the resource loader or {@code null}
110110
* @param sources the sources
111111
* @return the {@link SpringApplication} instance
112112
* @since 2.6.0

spring-boot-project/spring-boot/src/main/java/org/springframework/boot/jdbc/DatabaseDriver.java

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2022 the original author or authors.
2+
* Copyright 2012-2023 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -98,10 +98,12 @@ public enum DatabaseDriver {
9898
* @since 2.1.0
9999
*/
100100
HANA("HDB", "com.sap.db.jdbc.Driver", "com.sap.db.jdbcext.XADataSourceSAP", "SELECT 1 FROM SYS.DUMMY") {
101+
101102
@Override
102103
protected Collection<String> getUrlPrefixes() {
103104
return Collections.singleton("sap");
104105
}
106+
105107
},
106108

107109
/**
@@ -240,14 +242,18 @@ public String getId() {
240242
return name().toLowerCase(Locale.ENGLISH);
241243
}
242244

243-
protected boolean matchProductName(String productName) {
244-
return this.productName != null && this.productName.equalsIgnoreCase(productName);
245-
}
246-
245+
/**
246+
* Return the url prefixes of this driver.
247+
* @return the url prefixes
248+
*/
247249
protected Collection<String> getUrlPrefixes() {
248250
return Collections.singleton(name().toLowerCase(Locale.ENGLISH));
249251
}
250252

253+
protected boolean matchProductName(String productName) {
254+
return this.productName != null && this.productName.equalsIgnoreCase(productName);
255+
}
256+
251257
/**
252258
* Return the driver class name.
253259
* @return the class name or {@code null}

0 commit comments

Comments
 (0)