parent
300f2cd2dd
commit
f6fc0a86b3
|
@ -88,7 +88,7 @@ public class ExpressionException extends RuntimeException {
|
||||||
* @param cause the underlying cause of this exception
|
* @param cause the underlying cause of this exception
|
||||||
*/
|
*/
|
||||||
public ExpressionException(int position, String message, Throwable cause) {
|
public ExpressionException(int position, String message, Throwable cause) {
|
||||||
super(message,cause);
|
super(message, cause);
|
||||||
this.position = position;
|
this.position = position;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -63,8 +63,7 @@ public abstract class AbstractNamedValueMethodArgumentResolver implements Handle
|
||||||
|
|
||||||
private final BeanExpressionContext expressionContext;
|
private final BeanExpressionContext expressionContext;
|
||||||
|
|
||||||
private final Map<MethodParameter, NamedValueInfo> namedValueInfoCache =
|
private final Map<MethodParameter, NamedValueInfo> namedValueInfoCache = new ConcurrentHashMap<>(256);
|
||||||
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
|
* <p>Application tests will typically access this builder through the static factory
|
||||||
* methods in {@link MockMvcRequestBuilders}.
|
* methods in {@link MockMvcRequestBuilders}.
|
||||||
* <p>Although this class cannot be extended, additional ways to initialize
|
*
|
||||||
* the {@code MockHttpServletRequest} can be plugged in via
|
* <p>Although this class cannot be extended, additional ways to initialize the
|
||||||
* {@link #with(RequestPostProcessor)}.
|
* {@code MockHttpServletRequest} can be plugged in via {@link #with(RequestPostProcessor)}.
|
||||||
*
|
*
|
||||||
* @author Rossen Stoyanchev
|
* @author Rossen Stoyanchev
|
||||||
* @author Arjen Poutsma
|
* @author Arjen Poutsma
|
||||||
|
@ -156,6 +156,7 @@ public class MockHttpServletRequestBuilder
|
||||||
this.url = url;
|
this.url = url;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Add a request parameter to the {@link MockHttpServletRequest}.
|
* Add a request parameter to the {@link MockHttpServletRequest}.
|
||||||
* <p>If called more than once, new values get added to existing ones.
|
* <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.http.MediaType;
|
||||||
import org.springframework.util.FileCopyUtils;
|
import org.springframework.util.FileCopyUtils;
|
||||||
|
|
||||||
import static org.junit.Assert.assertEquals;
|
import static org.junit.Assert.*;
|
||||||
import static org.junit.Assert.assertFalse;
|
|
||||||
import static org.junit.Assert.assertNotNull;
|
|
||||||
import static org.junit.Assert.assertTrue;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author Arjen Poutsma
|
* @author Arjen Poutsma
|
||||||
|
|
|
@ -80,10 +80,10 @@ public abstract class AbstractSockJsSession implements SockJsSession {
|
||||||
private static final Set<String> disconnectedClientExceptions;
|
private static final Set<String> disconnectedClientExceptions;
|
||||||
|
|
||||||
static {
|
static {
|
||||||
Set<String> set = new HashSet<>(2);
|
Set<String> set = new HashSet<String>(4);
|
||||||
set.add("ClientAbortException"); // Tomcat
|
set.add("ClientAbortException"); // Tomcat
|
||||||
set.add("EOFException"); // Tomcat
|
set.add("EOFException"); // Tomcat
|
||||||
set.add("EofException"); // Jetty
|
set.add("EofException"); // Jetty
|
||||||
// java.io.IOException "Broken pipe" on WildFly, Glassfish (already covered)
|
// java.io.IOException "Broken pipe" on WildFly, Glassfish (already covered)
|
||||||
disconnectedClientExceptions = Collections.unmodifiableSet(set);
|
disconnectedClientExceptions = Collections.unmodifiableSet(set);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue