Consistent formatting

This commit is contained in:
Juergen Hoeller
2016-03-24 19:22:49 +01:00
parent 2cdb0cf690
commit 517ebd1d3e
101 changed files with 681 additions and 509 deletions

View File

@@ -38,7 +38,8 @@ public class ContextLoaderTestUtils {
public static void setCurrentWebApplicationContext(ClassLoader classLoader, WebApplicationContext applicationContext) {
if (applicationContext != null) {
currentContextPerThread.put(classLoader, applicationContext);
} else {
}
else {
currentContextPerThread.remove(classLoader);
}
}

View File

@@ -88,7 +88,7 @@ public class ConcurrentWebSocketSessionDecoratorTests {
assertTrue(concurrentSession.getTimeSinceSendStarted() > 0);
TextMessage payload = new TextMessage("payload");
for (int i=0; i < 5; i++) {
for (int i = 0; i < 5; i++) {
concurrentSession.sendMessage(payload);
}
@@ -166,7 +166,7 @@ public class ConcurrentWebSocketSessionDecoratorTests {
assertTrue(sentMessageLatch.await(5, TimeUnit.SECONDS));
StringBuilder sb = new StringBuilder();
for (int i=0 ; i < 1023; i++) {
for (int i = 0 ; i < 1023; i++) {
sb.append("a");
}

View File

@@ -91,7 +91,7 @@ public class RestTemplateXhrTransportTests {
@Test
public void connectReceiveAndCloseWithPrelude() throws Exception {
StringBuilder sb = new StringBuilder(2048);
for (int i=0; i < 2048; i++) {
for (int i = 0; i < 2048; i++) {
sb.append('h');
}
String body = sb.toString() + "\n" + "o\n" + "a[\"foo\"]\n" + "c[3000,\"Go away!\"]";