Reformat code
This commit is contained in:
@@ -83,8 +83,8 @@ class ConnectionInputStream extends FilterInputStream {
|
||||
}
|
||||
|
||||
/**
|
||||
* Read a number of bytes from the stream (checking that the end of the stream
|
||||
* hasn't been reached)
|
||||
* Read a number of bytes from the stream (checking that the end of the stream hasn't
|
||||
* been reached)
|
||||
* @param buffer the destination buffer
|
||||
* @param offset the buffer offset
|
||||
* @param length the length to read
|
||||
|
||||
@@ -33,16 +33,16 @@ public class HttpStatusHandler implements Handler {
|
||||
private final HttpStatus status;
|
||||
|
||||
/**
|
||||
* Create a new {@link HttpStatusHandler} instance that will respond with a HTTP OK 200
|
||||
* status.
|
||||
* Create a new {@link HttpStatusHandler} instance that will respond with a HTTP OK
|
||||
* 200 status.
|
||||
*/
|
||||
public HttpStatusHandler() {
|
||||
this(HttpStatus.OK);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a new {@link HttpStatusHandler} instance that will respond with the specified
|
||||
* status.
|
||||
* Create a new {@link HttpStatusHandler} instance that will respond with the
|
||||
* specified status.
|
||||
* @param status the status
|
||||
*/
|
||||
public HttpStatusHandler(HttpStatus status) {
|
||||
|
||||
@@ -33,8 +33,8 @@ import java.util.regex.Pattern;
|
||||
class ChangeableUrls implements Iterable<URL> {
|
||||
|
||||
private static final String[] SKIPPED_PROJECTS = { "spring-boot",
|
||||
"spring-boot-devtools", "spring-boot-autoconfigure",
|
||||
"spring-boot-actuator", "spring-boot-starter" };
|
||||
"spring-boot-devtools", "spring-boot-autoconfigure", "spring-boot-actuator",
|
||||
"spring-boot-starter" };
|
||||
|
||||
private static final Pattern STARTER_PATTERN = Pattern
|
||||
.compile("\\/spring-boot-starter-[\\w-]+\\/");
|
||||
|
||||
@@ -119,7 +119,7 @@ public class LocalDevToolsAutoConfigurationTests {
|
||||
LiveReloadServer server = this.context.getBean(LiveReloadServer.class);
|
||||
reset(server);
|
||||
ClassPathChangedEvent event = new ClassPathChangedEvent(this.context,
|
||||
Collections.<ChangedFiles> emptySet(), false);
|
||||
Collections.<ChangedFiles>emptySet(), false);
|
||||
this.context.publishEvent(event);
|
||||
verify(server).triggerReload();
|
||||
}
|
||||
@@ -130,7 +130,7 @@ public class LocalDevToolsAutoConfigurationTests {
|
||||
LiveReloadServer server = this.context.getBean(LiveReloadServer.class);
|
||||
reset(server);
|
||||
ClassPathChangedEvent event = new ClassPathChangedEvent(this.context,
|
||||
Collections.<ChangedFiles> emptySet(), true);
|
||||
Collections.<ChangedFiles>emptySet(), true);
|
||||
this.context.publishEvent(event);
|
||||
verify(server, never()).triggerReload();
|
||||
}
|
||||
@@ -148,7 +148,7 @@ public class LocalDevToolsAutoConfigurationTests {
|
||||
public void restartTriggeredOnClassPathChangeWithRestart() throws Exception {
|
||||
this.context = initializeAndRun(Config.class);
|
||||
ClassPathChangedEvent event = new ClassPathChangedEvent(this.context,
|
||||
Collections.<ChangedFiles> emptySet(), true);
|
||||
Collections.<ChangedFiles>emptySet(), true);
|
||||
this.context.publishEvent(event);
|
||||
verify(this.mockRestarter.getMock()).restart(any(FailureHandler.class));
|
||||
}
|
||||
@@ -157,7 +157,7 @@ public class LocalDevToolsAutoConfigurationTests {
|
||||
public void restartNotTriggeredOnClassPathChangeWithRestart() throws Exception {
|
||||
this.context = initializeAndRun(Config.class);
|
||||
ClassPathChangedEvent event = new ClassPathChangedEvent(this.context,
|
||||
Collections.<ChangedFiles> emptySet(), false);
|
||||
Collections.<ChangedFiles>emptySet(), false);
|
||||
this.context.publishEvent(event);
|
||||
verify(this.mockRestarter.getMock(), never()).restart();
|
||||
}
|
||||
@@ -211,7 +211,7 @@ public class LocalDevToolsAutoConfigurationTests {
|
||||
}
|
||||
|
||||
private ConfigurableApplicationContext initializeAndRun(Class<?> config) {
|
||||
return initializeAndRun(config, Collections.<String, Object> emptyMap());
|
||||
return initializeAndRun(config, Collections.<String, Object>emptyMap());
|
||||
}
|
||||
|
||||
private ConfigurableApplicationContext initializeAndRun(Class<?> config,
|
||||
|
||||
@@ -79,7 +79,7 @@ public class DispatcherTests {
|
||||
public void accessManagerMustNotBeNull() throws Exception {
|
||||
this.thrown.expect(IllegalArgumentException.class);
|
||||
this.thrown.expectMessage("AccessManager must not be null");
|
||||
new Dispatcher(null, Collections.<HandlerMapper> emptyList());
|
||||
new Dispatcher(null, Collections.<HandlerMapper>emptyList());
|
||||
}
|
||||
|
||||
@Test
|
||||
|
||||
Reference in New Issue
Block a user