Polish
This commit is contained in:
@@ -65,7 +65,6 @@ public class DevToolsProperties {
|
||||
|
||||
private static final long DEFAULT_RESTART_QUIET_PERIOD = 400;
|
||||
|
||||
|
||||
/**
|
||||
* Enable automatic restart.
|
||||
*/
|
||||
@@ -117,7 +116,8 @@ public class DevToolsProperties {
|
||||
allExclude.addAll(StringUtils.commaDelimitedListToSet(this.exclude));
|
||||
}
|
||||
if (StringUtils.hasText(this.additionalExclude)) {
|
||||
allExclude.addAll(StringUtils.commaDelimitedListToSet(this.additionalExclude));
|
||||
allExclude.addAll(StringUtils
|
||||
.commaDelimitedListToSet(this.additionalExclude));
|
||||
}
|
||||
return allExclude.toArray(new String[allExclude.size()]);
|
||||
}
|
||||
|
||||
@@ -34,9 +34,11 @@ public class DevToolsPropertiesTests {
|
||||
public void additionalExcludeKeepsDefaults() {
|
||||
DevToolsProperties.Restart restart = this.devToolsProperties.getRestart();
|
||||
restart.setAdditionalExclude("foo/**,bar/**");
|
||||
assertThat(restart.getAllExclude(), arrayContaining("META-INF/maven/**",
|
||||
"META-INF/resources/**", "resources/**", "static/**", "public/**",
|
||||
"templates/**", "foo/**", "bar/**"));
|
||||
assertThat(
|
||||
restart.getAllExclude(),
|
||||
arrayContaining("META-INF/maven/**", "META-INF/resources/**",
|
||||
"resources/**", "static/**", "public/**", "templates/**",
|
||||
"foo/**", "bar/**"));
|
||||
}
|
||||
|
||||
@Test
|
||||
|
||||
@@ -255,4 +255,5 @@ public class LocalDevToolsAutoConfigurationTests {
|
||||
public static class WebResourcesConfig {
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user