We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents bdebdb5 + c9c435c commit a21b5f5Copy full SHA for a21b5f5
spring-boot-project/spring-boot/src/main/java/org/springframework/boot/jdbc/DataSourceBuilder.java
@@ -238,18 +238,6 @@ public static DataSourceBuilder<?> derivedFrom(DataSource dataSource) {
238
throw new IllegalStateException("Unable to unwrap embedded database", ex);
239
}
240
241
- try {
242
- while (dataSource.isWrapperFor(DataSource.class)) {
243
- DataSource unwrapped = dataSource.unwrap(DataSource.class);
244
- if (unwrapped == dataSource) {
245
- break;
246
- }
247
- dataSource = unwrapped;
248
249
250
- catch (SQLException ex) {
251
- // Try to continue with the existing, potentially still wrapped, DataSource
252
253
return new DataSourceBuilder<>(unwrap(dataSource));
254
255
0 commit comments