Skip to content

Commit e710c0a

Browse files
style: Fix code formatting
1 parent 4533f29 commit e710c0a

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

spring-boot-project/spring-boot-devtools/src/main/java/org/springframework/boot/devtools/autoconfigure/LocalDevToolsAutoConfiguration.java

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -94,14 +94,13 @@ LiveReloadServerEventListener liveReloadServerEventListener(OptionalLiveReloadSe
9494
@Bean
9595
LiveReloadForAdditionalPaths liveReloadForAdditionalPaths(LiveReloadServer liveReloadServer,
9696
DevToolsProperties properties, FileSystemWatcher fileSystemWatcher) {
97-
return new LiveReloadForAdditionalPaths(liveReloadServer,
98-
properties.getLivereload().getAdditionalPaths(), fileSystemWatcher);
97+
return new LiveReloadForAdditionalPaths(liveReloadServer, properties.getLivereload().getAdditionalPaths(),
98+
fileSystemWatcher);
9999
}
100100

101101
@Bean
102102
FileSystemWatcher fileSystemWatcher(DevToolsProperties properties) {
103-
return new FileSystemWatcher(true,
104-
properties.getLivereload().getPollInterval(),
103+
return new FileSystemWatcher(true, properties.getLivereload().getPollInterval(),
105104
properties.getLivereload().getQuietPeriod());
106105
}
107106

@@ -243,7 +242,8 @@ public void destroy() throws Exception {
243242
}
244243
}
245244

246-
LiveReloadForAdditionalPaths(LiveReloadServer liveReloadServer, List<File> staticLocations, FileSystemWatcher fileSystemWatcher) {
245+
LiveReloadForAdditionalPaths(LiveReloadServer liveReloadServer, List<File> staticLocations,
246+
FileSystemWatcher fileSystemWatcher) {
247247
this.fileSystemWatcher = fileSystemWatcher;
248248

249249
for (File path : staticLocations) {
@@ -254,6 +254,7 @@ public void destroy() throws Exception {
254254

255255
this.fileSystemWatcher.start();
256256
}
257+
257258
}
258259

259260
}

spring-boot-project/spring-boot-devtools/src/test/java/org/springframework/boot/devtools/autoconfigure/LocalDevToolsAutoConfigurationTests.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,8 @@ void watchingAdditionalPathsForReload() throws Exception {
220220
Map<String, Object> properties = new HashMap<>();
221221
properties.put("spring.devtools.livereload.additional-paths", "src/main/java,src/test/java");
222222
this.context = getContext(() -> initializeAndRun(Config.class, properties));
223-
LiveReloadForAdditionalPaths liveReloadForAdditionalPaths = this.context.getBean(LiveReloadForAdditionalPaths.class);
223+
LiveReloadForAdditionalPaths liveReloadForAdditionalPaths = this.context
224+
.getBean(LiveReloadForAdditionalPaths.class);
224225
Object watcher = ReflectionTestUtils.getField(liveReloadForAdditionalPaths, "fileSystemWatcher");
225226
@SuppressWarnings("unchecked")
226227
Map<File, Object> directories = (Map<File, Object>) ReflectionTestUtils.getField(watcher, "directories");

0 commit comments

Comments
 (0)