Skip to content

Commit 1e6c7cc

Browse files
committed
Merge pull request #14621 from izeye
* pr/14621: Polish
2 parents 2d36a6f + b079eef commit 1e6c7cc

File tree

3 files changed

+8
-11
lines changed

3 files changed

+8
-11
lines changed

spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/data/jdbc/JdbcRepositoriesAutoConfiguration.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,8 @@
3434
* {@link EnableAutoConfiguration Auto-configuration} for Spring Data's JDBC Repositories.
3535
* <p>
3636
* Once in effect, the auto-configuration is the equivalent of enabling JDBC repositories
37-
* using the
38-
* {@link org.springframework.data.jdbc.repository.config.EnableJdbcRepositories}
39-
* annotation and providing a {@link JdbcConfiguration} subclass.
37+
* using the {@link EnableJdbcRepositories} annotation and providing a
38+
* {@link JdbcConfiguration} subclass.
4039
*
4140
* @author Andy Wilkinson
4241
* @since 2.1.0

spring-boot-project/spring-boot-autoconfigure/src/main/resources/META-INF/additional-spring-configuration-metadata.json

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -516,11 +516,6 @@
516516
"level" : "error"
517517
}
518518
},
519-
{
520-
"name": "spring.quartz.scheduler-name",
521-
"type": "java.lang.String",
522-
"defaultValue": "quartzScheduler"
523-
},
524519
{
525520
"name": "spring.quartz.jdbc.initialize-schema",
526521
"defaultValue": "embedded"
@@ -529,6 +524,10 @@
529524
"name": "spring.quartz.job-store-type",
530525
"defaultValue": "memory"
531526
},
527+
{
528+
"name": "spring.quartz.scheduler-name",
529+
"defaultValue": "quartzScheduler"
530+
},
532531
{
533532
"name": "spring.rabbitmq.cache.connection.mode",
534533
"defaultValue": "channel"

spring-boot-project/spring-boot-test-autoconfigure/src/test/java/org/springframework/boot/test/autoconfigure/data/jdbc/ExampleDataJdbcApplication.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,8 @@ public class ExampleDataJdbcApplication {
3333

3434
@Bean
3535
public DataSource dataSource() {
36-
EmbeddedDatabaseBuilder builder = new EmbeddedDatabaseBuilder()
37-
.generateUniqueName(true).setType(EmbeddedDatabaseType.HSQL);
38-
return builder.build();
36+
return new EmbeddedDatabaseBuilder().generateUniqueName(true)
37+
.setType(EmbeddedDatabaseType.HSQL).build();
3938
}
4039

4140
}

0 commit comments

Comments
 (0)