Skip to content

Commit 4b5a3f4

Browse files
committed
Start building against Spring Framework 5.2.9 snapshots
See gh-23182
1 parent 611447c commit 4b5a3f4

File tree

5 files changed

+14
-8
lines changed

5 files changed

+14
-8
lines changed

spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/flyway/FlywayAutoConfiguration.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616

1717
package org.springframework.boot.autoconfigure.flyway;
1818

19+
import java.sql.DatabaseMetaData;
1920
import java.util.Collection;
2021
import java.util.Collections;
2122
import java.util.HashSet;
@@ -385,7 +386,7 @@ private List<String> replaceVendorLocations(List<String> locations, DatabaseDriv
385386

386387
private DatabaseDriver getDatabaseDriver() {
387388
try {
388-
String url = JdbcUtils.extractDatabaseMetaData(this.dataSource, "getURL");
389+
String url = JdbcUtils.extractDatabaseMetaData(this.dataSource, DatabaseMetaData::getURL);
389390
return DatabaseDriver.fromJdbcUrl(url);
390391
}
391392
catch (MetaDataAccessException ex) {

spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/jooq/SqlDialectLookup.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2019 the original author or authors.
2+
* Copyright 2012-2020 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.
@@ -16,6 +16,8 @@
1616

1717
package org.springframework.boot.autoconfigure.jooq;
1818

19+
import java.sql.DatabaseMetaData;
20+
1921
import javax.sql.DataSource;
2022

2123
import org.apache.commons.logging.Log;
@@ -49,7 +51,7 @@ static SQLDialect getDialect(DataSource dataSource) {
4951
return SQLDialect.DEFAULT;
5052
}
5153
try {
52-
String url = JdbcUtils.extractDatabaseMetaData(dataSource, "getURL");
54+
String url = JdbcUtils.extractDatabaseMetaData(dataSource, DatabaseMetaData::getURL);
5355
SQLDialect sqlDialect = JDBCUtils.dialect(url);
5456
if (sqlDialect != null) {
5557
return sqlDialect;

spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/orm/jpa/DatabaseLookup.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2019 the original author or authors.
2+
* Copyright 2012-2020 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.
@@ -16,6 +16,7 @@
1616

1717
package org.springframework.boot.autoconfigure.orm.jpa;
1818

19+
import java.sql.DatabaseMetaData;
1920
import java.util.Collections;
2021
import java.util.EnumMap;
2122
import java.util.Map;
@@ -70,7 +71,7 @@ static Database getDatabase(DataSource dataSource) {
7071
return Database.DEFAULT;
7172
}
7273
try {
73-
String url = JdbcUtils.extractDatabaseMetaData(dataSource, "getURL");
74+
String url = JdbcUtils.extractDatabaseMetaData(dataSource, DatabaseMetaData::getURL);
7475
DatabaseDriver driver = DatabaseDriver.fromJdbcUrl(url);
7576
Database database = LOOKUP.get(driver);
7677
if (database != null) {

spring-boot-project/spring-boot-dependencies/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@
191191
<spring-batch.version>4.2.4.RELEASE</spring-batch.version>
192192
<spring-cloud-connectors.version>2.0.7.RELEASE</spring-cloud-connectors.version>
193193
<spring-data-releasetrain.version>Moore-SR9</spring-data-releasetrain.version>
194-
<spring-framework.version>5.2.8.RELEASE</spring-framework.version>
194+
<spring-framework.version>5.2.9.BUILD-SNAPSHOT</spring-framework.version>
195195
<spring-hateoas.version>1.0.5.RELEASE</spring-hateoas.version>
196196
<spring-integration.version>5.2.8.RELEASE</spring-integration.version>
197197
<spring-kafka.version>2.3.10.RELEASE</spring-kafka.version>

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2019 the original author or authors.
2+
* Copyright 2012-2020 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.
@@ -16,6 +16,8 @@
1616

1717
package org.springframework.boot.jdbc;
1818

19+
import java.sql.DatabaseMetaData;
20+
1921
import javax.annotation.PostConstruct;
2022
import javax.sql.DataSource;
2123

@@ -87,7 +89,7 @@ protected void customize(ResourceDatabasePopulator populator) {
8789
protected String getDatabaseName() {
8890
try {
8991
String productName = JdbcUtils.commonDatabaseName(
90-
JdbcUtils.extractDatabaseMetaData(this.dataSource, "getDatabaseProductName").toString());
92+
JdbcUtils.extractDatabaseMetaData(this.dataSource, DatabaseMetaData::getDatabaseProductName));
9193
DatabaseDriver databaseDriver = DatabaseDriver.fromProductName(productName);
9294
if (databaseDriver == DatabaseDriver.UNKNOWN) {
9395
throw new IllegalStateException("Unable to detect database type");

0 commit comments

Comments
 (0)