Skip to content

Commit eef76db

Browse files
committed
fix checkstyle issues
1 parent 06084a2 commit eef76db

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

src/main/java/org/fairdatapoint/config/BootstrapConfig.java

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,17 @@
3737
import java.util.Comparator;
3838

3939
/**
40-
* The {@code BootstrapConfig} class configures a repository populator to load initial data into the relational database, based on JSON fixture files.
40+
* The {@code BootstrapConfig} class configures a repository populator to load initial data into the relational
41+
* database, based on JSON fixture files.
4142
* Bootstrapping is disabled by default, and should only be enabled once, on the very first run of the application.
4243
* It can also be enabled on subsequent runs, but then it will overwrite any changes that may have been made by users.
43-
* To enable on the first run, set the env variable {@code BOOTSTRAP_ENABLED=true} on the command line, before running the app.
44-
* When using e.g. docker compose, you can define {@code BOOTSTRAP_ENABLED: ${BOOTSTRAP_ENABLED:-false}} in the {@code environment} section and then set up the stack by running {@code BOOTSTRAP_ENABLED=true docker compose up -d}.
44+
* To enable on the first run, set the env variable {@code BOOTSTRAP_ENABLED=true} on the command line, before running
45+
* the app.
46+
* When using e.g. docker compose, you can define {@code BOOTSTRAP_ENABLED: ${BOOTSTRAP_ENABLED:-false}} in the
47+
* {@code environment} section and then set up the stack by running {@code BOOTSTRAP_ENABLED=true docker compose up -d}.
4548
* The default fixtures are located in the {@code <project-root>/fixtures} directory.
46-
* To add custom fixtures and/or override any of the default fixtures in a docker compose setup, we can bind-mount individual fixture files.
49+
* To add custom fixtures and/or override any of the default fixtures in a docker compose setup, we can bind-mount
50+
* individual fixture files.
4751
* For example: {@code ./my-fixtures/0100_user-accounts.json:/fdp/fixtures/0100_user-accounts.json:ro}
4852
* Note that bind-mounting the entire directory, instead of individual files, would hide all default files.
4953
*/
@@ -65,7 +69,7 @@ public BootstrapConfig(
6569
@Bean
6670
public Jackson2RepositoryPopulatorFactoryBean repositoryPopulator() {
6771
final Jackson2RepositoryPopulatorFactoryBean factory = new Jackson2RepositoryPopulatorFactoryBean();
68-
if (bootstrapEnabled) {
72+
if (bootstrapEnabled) {
6973
log.info("Bootstrap repository populator enabled");
7074
try {
7175
// collect fixture resources
@@ -84,7 +88,8 @@ public Jackson2RepositoryPopulatorFactoryBean repositoryPopulator() {
8488
catch (IOException exception) {
8589
exception.printStackTrace();
8690
}
87-
} else {
91+
}
92+
else {
8893
log.info("Bootstrap repository populator disabled");
8994
}
9095

0 commit comments

Comments
 (0)