mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-09-03 04:26:12 +08:00
Restore Java 1.6 compatibility
This commit is contained in:
parent
00b76490dc
commit
5243adce22
@ -864,7 +864,7 @@ public class ServerProperties
|
||||
.getIncludeStacktrace() == ErrorProperties.IncludeStacktrace.NEVER) {
|
||||
customizeErrorReportValve(factory);
|
||||
}
|
||||
Cookie cookie = serverProperties.getSession().getCookie();
|
||||
final Cookie cookie = serverProperties.getSession().getCookie();
|
||||
if (cookie.getHttpOnly() != null) {
|
||||
factory.addContextCustomizers(new TomcatContextCustomizer() {
|
||||
|
||||
|
@ -84,7 +84,7 @@ public class ErrorPageFilter implements Filter, ErrorPageRegistry {
|
||||
|
||||
private static final Set<Class<?>> CLIENT_ABORT_EXCEPTIONS;
|
||||
static {
|
||||
Set<Class<?>> clientAbortExceptions = new HashSet<>();
|
||||
Set<Class<?>> clientAbortExceptions = new HashSet<Class<?>>();
|
||||
addClassIfPresent(clientAbortExceptions,
|
||||
"org.apache.catalina.connector.ClientAbortException");
|
||||
CLIENT_ABORT_EXCEPTIONS = Collections.unmodifiableSet(clientAbortExceptions);
|
||||
|
Loading…
Reference in New Issue
Block a user