Skip to content

Commit e8effad

Browse files
committed
Merge pull request spring-projects#17852 from succezlijunyi
* pr/17852: Simplify some code Closes spring-projectsgh-17852
2 parents 21f1b3a + b26f887 commit e8effad

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

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

+1-2
Original file line numberDiff line numberDiff line change
@@ -252,8 +252,7 @@ private ConfigurableApplicationContext initializeAndRun(Class<?> config, Map<Str
252252
Restarter.initialize(new String[0], false, new MockRestartInitializer(), false);
253253
SpringApplication application = new SpringApplication(config);
254254
application.setDefaultProperties(getDefaultProperties(properties));
255-
ConfigurableApplicationContext context = application.run(args);
256-
return context;
255+
return application.run(args);
257256
}
258257

259258
private Map<String, Object> getDefaultProperties(Map<String, Object> specifiedProperties) {

spring-boot-project/spring-boot-devtools/src/test/java/org/springframework/boot/devtools/remote/client/ClassPathChangeUploaderTests.java

+1-2
Original file line numberDiff line numberDiff line change
@@ -139,8 +139,7 @@ private ClassPathChangedEvent createClassPathChangedEvent(File sourceFolder) thr
139139
files.add(new ChangedFile(sourceFolder, file3, Type.DELETE));
140140
Set<ChangedFiles> changeSet = new LinkedHashSet<>();
141141
changeSet.add(new ChangedFiles(sourceFolder, files));
142-
ClassPathChangedEvent event = new ClassPathChangedEvent(this, changeSet, false);
143-
return event;
142+
return new ClassPathChangedEvent(this, changeSet, false);
144143
}
145144

146145
private File createFile(File sourceFolder, String name) throws IOException {

0 commit comments

Comments
 (0)