Skip to content

Commit d370981

Browse files
committed
Polish
1 parent 20fbe74 commit d370981

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,16 +54,15 @@ false, new ResourceNameCache(), new LocationScannerCache(),
5454
configuration.isFailOnMissingLocations());
5555
}
5656
catch (NoSuchMethodError ex) {
57-
// Flyway 10
5857
return createFlyway10Scanner(configuration);
5958
}
6059
}
6160

6261
private static Scanner<?> createFlyway10Scanner(FluentConfiguration configuration) throws LinkageError {
6362
try {
64-
Constructor<?> scannerConstructor = Scanner.class.getDeclaredConstructor(Class.class, boolean.class,
63+
Constructor<?> constructor = Scanner.class.getDeclaredConstructor(Class.class, boolean.class,
6564
ResourceNameCache.class, LocationScannerCache.class, Configuration.class);
66-
return (Scanner<?>) scannerConstructor.newInstance(JavaMigration.class, false, new ResourceNameCache(),
65+
return (Scanner<?>) constructor.newInstance(JavaMigration.class, false, new ResourceNameCache(),
6766
new LocationScannerCache(), configuration);
6867
}
6968
catch (Exception ex) {

spring-boot-project/spring-boot-docs/src/main/kotlin/org/springframework/boot/docs/features/testing/testcontainers/vanilla/MyIntegrationTests.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,10 @@ class MyIntegrationTests {
3232
}
3333

3434
companion object {
35+
3536
@Container
3637
val neo4j = Neo4jContainer("neo4j:5")
38+
3739
}
3840

3941
}

spring-boot-project/spring-boot-docs/src/main/kotlin/org/springframework/boot/docs/testing/testcontainers/serviceconnections/MyIntegrationTests.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,12 @@ class MyIntegrationTests {
3434
}
3535

3636
companion object {
37+
3738
@Container
3839
@ServiceConnection
3940
@JvmStatic
4041
val neo4j = Neo4jContainer("neo4j:5");
42+
4143
}
44+
4245
}

0 commit comments

Comments
 (0)