Formatting

This commit is contained in:
Phillip Webb
2016-04-24 22:54:27 -07:00
parent 79922360e1
commit 93382648ab
25 changed files with 58 additions and 57 deletions

View File

@@ -615,9 +615,8 @@ public class JettyEmbeddedServletContainerFactory
}
/**
* Set a Jetty {@link ThreadPool} that should be used by the {@link Server}.
* If set to {@code null} (default), the {@link Server} creates
* a {@link ThreadPool} implicitly.
* Set a Jetty {@link ThreadPool} that should be used by the {@link Server}. If set to
* {@code null} (default), the {@link Server} creates a {@link ThreadPool} implicitly.
* @param threadPool a Jetty ThreadPool to be used
*/
public void setThreadPool(ThreadPool threadPool) {
@@ -898,7 +897,8 @@ public class JettyEmbeddedServletContainerFactory
public Server createServer(ThreadPool threadPool) {
Server server = new Server();
try {
ReflectionUtils.findMethod(Server.class, "setThreadPool", ThreadPool.class)
ReflectionUtils
.findMethod(Server.class, "setThreadPool", ThreadPool.class)
.invoke(server, threadPool);
}
catch (Exception e) {

View File

@@ -76,8 +76,8 @@ public abstract class JsonObjectDeserializer<T>
throws IOException;
/**
* Helper method to extract a value from the given {@code jsonNode} or return {@code null}
* when the node itself is {@code null}.
* Helper method to extract a value from the given {@code jsonNode} or return
* {@code null} when the node itself is {@code null}.
* @param jsonNode the source node (may be {@code null}
* @param type the data type. May be {@link String}, {@link Boolean}, {@link Long},
* {@link Integer}, {@link Short}, {@link Double}, {@link Float}, {@link BigDecimal}

View File

@@ -157,7 +157,8 @@ public class ImageBannerTests {
}
@Test
public void printBannerWhenHasMarginPropertyShouldPrintSizedMargin() throws Exception {
public void printBannerWhenHasMarginPropertyShouldPrintSizedMargin()
throws Exception {
AnsiOutput.setEnabled(AnsiOutput.Enabled.NEVER);
String banner = printBanner("large.gif", "banner.image.margin=4");
String[] lines = banner.split(NEW_LINE);

View File

@@ -72,7 +72,8 @@ public class SpringBootJoranConfiguratorTests {
@After
public void reset() {
this.context.stop();
new BasicConfigurator().configure((LoggerContext) LoggerFactory.getILoggerFactory());
new BasicConfigurator()
.configure((LoggerContext) LoggerFactory.getILoggerFactory());
}
@Test

View File

@@ -58,12 +58,12 @@ public class NodeEntityScanTests {
this.thrown.expectMessage("Unable to configure "
+ "SessionFactoryFactoryBean from @NodeEntityScan, "
+ "ensure an appropriate bean is registered.");
this.context = new AnnotationConfigApplicationContext(MissingSessionFactory.class);
this.context = new AnnotationConfigApplicationContext(
MissingSessionFactory.class);
}
private void assertSetPackagesToScan(String... expected) {
String[] actual = this.context
.getBean(TestSessionFactoryProvider.class)
String[] actual = this.context.getBean(TestSessionFactoryProvider.class)
.getPackagesToScan();
assertThat(actual).isEqualTo(expected);
}
@@ -87,9 +87,7 @@ public class NodeEntityScanTests {
static class MissingSessionFactory {
}
private static class TestSessionFactoryProvider
extends SessionFactoryProvider {
private static class TestSessionFactoryProvider extends SessionFactoryProvider {
private String[] packagesToScan;

View File

@@ -63,7 +63,8 @@ public class InternalOutputCapture implements TestRule {
try {
if (!InternalOutputCapture.this.matchers.isEmpty()) {
String output = InternalOutputCapture.this.toString();
Assert.assertThat(output, allOf(InternalOutputCapture.this.matchers));
Assert.assertThat(output,
allOf(InternalOutputCapture.this.matchers));
}
}
finally {