Skip to content

Commit d90e622

Browse files
committed
Polish "Add support for AWS Advanced JDBC Wrapper"
See gh-43812
1 parent 2bf413c commit d90e622

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

Diff for: spring-boot-project/spring-boot-parent/build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ bom {
2828
library("AWS Advanced JDBC Wrapper", "2.5.4") {
2929
group("software.amazon.jdbc") {
3030
modules = [
31-
"aws-advanced-jdbc-wrapper"
31+
"aws-advanced-jdbc-wrapper"
3232
]
3333
}
3434
}

Diff for: spring-boot-project/spring-boot/src/main/java/org/springframework/boot/jdbc/DatabaseDriver.java

+2-3
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
import java.util.Arrays;
2020
import java.util.Collection;
2121
import java.util.Collections;
22-
import java.util.List;
2322
import java.util.Locale;
2423

2524
import org.springframework.util.Assert;
@@ -225,11 +224,11 @@ protected Collection<String> getUrlPrefixes() {
225224
* AWS Advanced JDBC Wrapper.
226225
* @since 3.5.0
227226
*/
228-
AWS_JDBC_WRAPPER(null, "software.amazon.jdbc.Driver") {
227+
AWS_WRAPPER(null, "software.amazon.jdbc.Driver") {
229228

230229
@Override
231230
protected Collection<String> getUrlPrefixes() {
232-
return List.of("aws-wrapper");
231+
return Collections.singleton("aws-wrapper");
233232
}
234233

235234
};

Diff for: spring-boot-project/spring-boot/src/test/java/org/springframework/boot/jdbc/DatabaseDriverTests.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ void databaseJdbcUrlLookups() {
122122
.isEqualTo(DatabaseDriver.CLICKHOUSE);
123123
assertThat(DatabaseDriver.fromJdbcUrl("jdbc:ch://localhost:3306/sample")).isEqualTo(DatabaseDriver.CLICKHOUSE);
124124
assertThat(DatabaseDriver.fromJdbcUrl("jdbc:aws-wrapper:postgresql://127.0.0.1:5432/sample"))
125-
.isEqualTo(DatabaseDriver.AWS_JDBC_WRAPPER);
125+
.isEqualTo(DatabaseDriver.AWS_WRAPPER);
126126
}
127127

128128
}

0 commit comments

Comments
 (0)