Skip to content

Commit b677752

Browse files
committed
Merge branch '2.7.x' into 3.0.x
2 parents 63f2967 + bece347 commit b677752

File tree

3 files changed

+13
-7
lines changed

3 files changed

+13
-7
lines changed

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)