Skip to content

Commit 5243adc

Browse files
committed
Restore Java 1.6 compatibility
1 parent 00b7649 commit 5243adc

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/web/ServerProperties.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -864,7 +864,7 @@ void customizeTomcat(ServerProperties serverProperties,
864864
.getIncludeStacktrace() == ErrorProperties.IncludeStacktrace.NEVER) {
865865
customizeErrorReportValve(factory);
866866
}
867-
Cookie cookie = serverProperties.getSession().getCookie();
867+
final Cookie cookie = serverProperties.getSession().getCookie();
868868
if (cookie.getHttpOnly() != null) {
869869
factory.addContextCustomizers(new TomcatContextCustomizer() {
870870

spring-boot/src/main/java/org/springframework/boot/web/support/ErrorPageFilter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ public class ErrorPageFilter implements Filter, ErrorPageRegistry {
8484

8585
private static final Set<Class<?>> CLIENT_ABORT_EXCEPTIONS;
8686
static {
87-
Set<Class<?>> clientAbortExceptions = new HashSet<>();
87+
Set<Class<?>> clientAbortExceptions = new HashSet<Class<?>>();
8888
addClassIfPresent(clientAbortExceptions,
8989
"org.apache.catalina.connector.ClientAbortException");
9090
CLIENT_ABORT_EXCEPTIONS = Collections.unmodifiableSet(clientAbortExceptions);

0 commit comments

Comments
 (0)