parent
300f2cd2dd
commit
f6fc0a86b3
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
||||
/**
|
||||
|
|
|
@ -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
|
|||
this.url = url;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Add a request parameter to the {@link MockHttpServletRequest}.
|
||||
* <p>If called more than once, new values get added to existing ones.
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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…
Reference in New Issue