Skip to content

Commit bece347

Browse files
mhalbritterphilwebb
authored andcommitted
Polish
1 parent 69087ba commit bece347

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
@@ -253,7 +253,7 @@ public SELF withSystemProperties(String... pairs) {
253253
/**
254254
* Customize the {@link ClassLoader} that the {@link ApplicationContext} should use
255255
* for resource loading and bean class loading.
256-
* @param classLoader the classloader to use (can be null to use the default)
256+
* @param classLoader the classloader to use (or {@code null} to use the default)
257257
* @return a new instance with the updated class loader
258258
* @see FilteredClassLoader
259259
*/

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
@@ -120,7 +120,7 @@ protected SpringApplication createSpringApplication(Class<?>... sources) {
120120
* Creates a new {@link SpringApplication} instance from the given sources using the
121121
* given {@link ResourceLoader}. Subclasses may override in order to provide a custom
122122
* subclass of {@link SpringApplication}.
123-
* @param resourceLoader the resource loader (can be null)
123+
* @param resourceLoader the resource loader or {@code null}
124124
* @param sources the sources
125125
* @return the {@link SpringApplication} instance
126126
* @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.
@@ -106,10 +106,12 @@ public enum DatabaseDriver {
106106
* @since 2.1.0
107107
*/
108108
HANA("HDB", "com.sap.db.jdbc.Driver", "com.sap.db.jdbcext.XADataSourceSAP", "SELECT 1 FROM SYS.DUMMY") {
109+
109110
@Override
110111
protected Collection<String> getUrlPrefixes() {
111112
return Collections.singleton("sap");
112113
}
114+
113115
},
114116

115117
/**
@@ -248,14 +250,18 @@ public String getId() {
248250
return name().toLowerCase(Locale.ENGLISH);
249251
}
250252

251-
protected boolean matchProductName(String productName) {
252-
return this.productName != null && this.productName.equalsIgnoreCase(productName);
253-
}
254-
253+
/**
254+
* Return the url prefixes of this driver.
255+
* @return the url prefixes
256+
*/
255257
protected Collection<String> getUrlPrefixes() {
256258
return Collections.singleton(name().toLowerCase(Locale.ENGLISH));
257259
}
258260

261+
protected boolean matchProductName(String productName) {
262+
return this.productName != null && this.productName.equalsIgnoreCase(productName);
263+
}
264+
259265
/**
260266
* Return the driver class name.
261267
* @return the class name or {@code null}

0 commit comments

Comments
 (0)