Skip to content

Commit ec33a52

Browse files
committed
Fix for Can't connect to a local h2 database created without username #23538". formatting fixes for the failing tests.
1 parent 874f67d commit ec33a52

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

+2-1
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,8 @@ public static boolean isEmbedded(String driverClass) {
135135
* @param url the jdbc url
136136
* @return true if the driver class is one of the embedded types
137137
*/
138-
public static boolean isEmbedded(String driverClass, String url){
138+
public static boolean isEmbedded(String driverClass, String url)
139+
{
139140
return (driverClass != null && (matches(HSQL, driverClass) || ( matches(H2, driverClass) && !StringUtils.hasText("mem"))
140141
|| matches(DERBY, driverClass) || matches(HSQLDB, driverClass)));
141142
}

0 commit comments

Comments
 (0)