Browse Source

Simplify some code

See gh-17852
pull/17864/head
lijuny 7 years ago committed by Stephane Nicoll
parent
commit
b26f887a2e
  1. 3
      spring-boot-project/spring-boot-devtools/src/test/java/org/springframework/boot/devtools/autoconfigure/LocalDevToolsAutoConfigurationTests.java
  2. 3
      spring-boot-project/spring-boot-devtools/src/test/java/org/springframework/boot/devtools/remote/client/ClassPathChangeUploaderTests.java

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

@ -252,8 +252,7 @@ class LocalDevToolsAutoConfigurationTests { @@ -252,8 +252,7 @@ class LocalDevToolsAutoConfigurationTests {
Restarter.initialize(new String[0], false, new MockRestartInitializer(), false);
SpringApplication application = new SpringApplication(config);
application.setDefaultProperties(getDefaultProperties(properties));
ConfigurableApplicationContext context = application.run(args);
return context;
return application.run(args);
}
private Map<String, Object> getDefaultProperties(Map<String, Object> specifiedProperties) {

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

@ -139,8 +139,7 @@ class ClassPathChangeUploaderTests { @@ -139,8 +139,7 @@ class ClassPathChangeUploaderTests {
files.add(new ChangedFile(sourceFolder, file3, Type.DELETE));
Set<ChangedFiles> changeSet = new LinkedHashSet<>();
changeSet.add(new ChangedFiles(sourceFolder, files));
ClassPathChangedEvent event = new ClassPathChangedEvent(this, changeSet, false);
return event;
return new ClassPathChangedEvent(this, changeSet, false);
}
private File createFile(File sourceFolder, String name) throws IOException {

Loading…
Cancel
Save