Skip to content

Commit 472d7f3

Browse files
committed
Polish
1 parent 9f6f244 commit 472d7f3

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2024 the original author or authors.
2+
* Copyright 2012-2025 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.
@@ -38,15 +38,15 @@ class DataSourceBuilderRuntimeHints implements RuntimeHintsRegistrar {
3838
static {
3939
List<String> typeNames = new ArrayList<>();
4040
typeNames.add("com.mchange.v2.c3p0.ComboPooledDataSource");
41-
typeNames.add("org.h2.jdbcx.JdbcDataSource");
4241
typeNames.add("com.zaxxer.hikari.HikariDataSource");
43-
typeNames.add("org.apache.commons.dbcp2.BasicDataSource");
4442
typeNames.add("oracle.jdbc.datasource.OracleDataSource");
4543
typeNames.add("oracle.ucp.jdbc.PoolDataSource");
46-
typeNames.add("org.vibur.dbcp.ViburDBCPDataSource");
44+
typeNames.add("org.apache.commons.dbcp2.BasicDataSource");
45+
typeNames.add("org.apache.tomcat.jdbc.pool.DataSource");
46+
typeNames.add("org.h2.jdbcx.JdbcDataSource");
4747
typeNames.add("org.postgresql.ds.PGSimpleDataSource");
4848
typeNames.add("org.springframework.jdbc.datasource.SimpleDriverDataSource");
49-
typeNames.add("org.apache.tomcat.jdbc.pool.DataSource");
49+
typeNames.add("org.vibur.dbcp.ViburDBCPDataSource");
5050
TYPE_NAMES = Collections.unmodifiableList(typeNames);
5151
}
5252

spring-boot-project/spring-boot/src/test/java/org/springframework/boot/jdbc/DataSourceBuilderRuntimeHintsTests.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2024 the original author or authors.
2+
* Copyright 2012-2025 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.
@@ -39,12 +39,12 @@ class DataSourceBuilderRuntimeHintsTests {
3939
void shouldRegisterDataSourceConstructors() {
4040
ReflectionHints hints = registerHints();
4141
Stream
42-
.of(com.mchange.v2.c3p0.ComboPooledDataSource.class, org.h2.jdbcx.JdbcDataSource.class,
43-
com.zaxxer.hikari.HikariDataSource.class, org.apache.commons.dbcp2.BasicDataSource.class,
42+
.of(com.mchange.v2.c3p0.ComboPooledDataSource.class, com.zaxxer.hikari.HikariDataSource.class,
4443
oracle.jdbc.datasource.OracleDataSource.class, oracle.ucp.jdbc.PoolDataSource.class,
45-
org.vibur.dbcp.ViburDBCPDataSource.class, org.postgresql.ds.PGSimpleDataSource.class,
44+
org.apache.commons.dbcp2.BasicDataSource.class, org.apache.tomcat.jdbc.pool.DataSource.class,
45+
org.h2.jdbcx.JdbcDataSource.class, org.postgresql.ds.PGSimpleDataSource.class,
4646
org.springframework.jdbc.datasource.SimpleDriverDataSource.class,
47-
org.apache.tomcat.jdbc.pool.DataSource.class)
47+
org.vibur.dbcp.ViburDBCPDataSource.class)
4848
.forEach((dataSourceType) -> {
4949
TypeHint typeHint = hints.getTypeHint(dataSourceType);
5050
assertThat(typeHint).withFailMessage(() -> "No hints found for data source type " + dataSourceType)

0 commit comments

Comments
 (0)