Browse Source

Polishing

(cherry picked from commit 0028b29)
pull/1253/head
Juergen Hoeller 8 years ago
parent
commit
f6fc0a86b3
  1. 2
      spring-expression/src/main/java/org/springframework/expression/ExpressionException.java
  2. 3
      spring-messaging/src/main/java/org/springframework/messaging/handler/annotation/support/AbstractNamedValueMethodArgumentResolver.java
  3. 7
      spring-test/src/main/java/org/springframework/test/web/servlet/request/MockHttpServletRequestBuilder.java
  4. 5
      spring-web/src/test/java/org/springframework/web/client/AbstractJettyServerTestCase.java
  5. 8
      spring-websocket/src/main/java/org/springframework/web/socket/sockjs/transport/session/AbstractSockJsSession.java

2
spring-expression/src/main/java/org/springframework/expression/ExpressionException.java

@ -88,7 +88,7 @@ public class ExpressionException extends RuntimeException { @@ -88,7 +88,7 @@ public class ExpressionException extends RuntimeException {
* @param cause the underlying cause of this exception
*/
public ExpressionException(int position, String message, Throwable cause) {
super(message,cause);
super(message, cause);
this.position = position;
}

3
spring-messaging/src/main/java/org/springframework/messaging/handler/annotation/support/AbstractNamedValueMethodArgumentResolver.java

@ -63,8 +63,7 @@ public abstract class AbstractNamedValueMethodArgumentResolver implements Handle @@ -63,8 +63,7 @@ public abstract class AbstractNamedValueMethodArgumentResolver implements Handle
private final BeanExpressionContext expressionContext;
private final Map<MethodParameter, NamedValueInfo> namedValueInfoCache =
new ConcurrentHashMap<>(256);
private final Map<MethodParameter, NamedValueInfo> namedValueInfoCache = new ConcurrentHashMap<>(256);
/**

7
spring-test/src/main/java/org/springframework/test/web/servlet/request/MockHttpServletRequestBuilder.java

@ -66,9 +66,9 @@ import org.springframework.web.util.UriUtils; @@ -66,9 +66,9 @@ import org.springframework.web.util.UriUtils;
*
* <p>Application tests will typically access this builder through the static factory
* methods in {@link MockMvcRequestBuilders}.
* <p>Although this class cannot be extended, additional ways to initialize
* the {@code MockHttpServletRequest} can be plugged in via
* {@link #with(RequestPostProcessor)}.
*
* <p>Although this class cannot be extended, additional ways to initialize the
* {@code MockHttpServletRequest} can be plugged in via {@link #with(RequestPostProcessor)}.
*
* @author Rossen Stoyanchev
* @author Arjen Poutsma
@ -156,6 +156,7 @@ public class MockHttpServletRequestBuilder @@ -156,6 +156,7 @@ public class MockHttpServletRequestBuilder
this.url = url;
}
/**
* Add a request parameter to the {@link MockHttpServletRequest}.
* <p>If called more than once, new values get added to existing ones.

5
spring-web/src/test/java/org/springframework/web/client/AbstractJettyServerTestCase.java

@ -45,10 +45,7 @@ import org.junit.BeforeClass; @@ -45,10 +45,7 @@ import org.junit.BeforeClass;
import org.springframework.http.MediaType;
import org.springframework.util.FileCopyUtils;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertTrue;
import static org.junit.Assert.*;
/**
* @author Arjen Poutsma

8
spring-websocket/src/main/java/org/springframework/web/socket/sockjs/transport/session/AbstractSockJsSession.java

@ -80,10 +80,10 @@ public abstract class AbstractSockJsSession implements SockJsSession { @@ -80,10 +80,10 @@ public abstract class AbstractSockJsSession implements SockJsSession {
private static final Set<String> disconnectedClientExceptions;
static {
Set<String> set = new HashSet<>(2);
set.add("ClientAbortException"); // Tomcat
set.add("EOFException"); // Tomcat
set.add("EofException"); // Jetty
Set<String> set = new HashSet<String>(4);
set.add("ClientAbortException"); // Tomcat
set.add("EOFException"); // Tomcat
set.add("EofException"); // Jetty
// java.io.IOException "Broken pipe" on WildFly, Glassfish (already covered)
disconnectedClientExceptions = Collections.unmodifiableSet(set);
}

Loading…
Cancel
Save