Skip to content

Commit 37b2a8b

Browse files
committed
Remove unnecessary Spring Security servlet hints
Closes spring-atticgh-1392
1 parent 3af9edf commit 37b2a8b

File tree

1 file changed

+1
-6
lines changed
  • spring-native-configuration/src/main/java/org/springframework/security/config/annotation/web/configuration

1 file changed

+1
-6
lines changed

spring-native-configuration/src/main/java/org/springframework/security/config/annotation/web/configuration/WebMvcSecurityHints.java

+1-6
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2019-2021 the original author or authors.
2+
* Copyright 2019-2022 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -15,10 +15,6 @@
1515
*/
1616
package org.springframework.security.config.annotation.web.configuration;
1717

18-
import javax.servlet.ServletRequest;
19-
import javax.servlet.ServletRequestWrapper;
20-
import javax.servlet.http.HttpServletRequestWrapper;
21-
2218
import org.springframework.nativex.hint.MethodHint;
2319
import org.springframework.nativex.hint.NativeHint;
2420
import org.springframework.nativex.hint.TypeAccess;
@@ -37,7 +33,6 @@
3733
// TODO interesting that gs-securing-web causes these to be needed although it is in thymeleaf (due to SpEL expressions I think)
3834
types = {@TypeHint(
3935
typeNames = "org.thymeleaf.standard.expression.RestrictedRequestAccessUtils$RestrictedRequestWrapper",
40-
types = {HttpServletRequestWrapper.class, ServletRequestWrapper.class, ServletRequest.class},
4136
access = { TypeAccess.DECLARED_CONSTRUCTORS, TypeAccess.PUBLIC_METHODS, TypeAccess.DECLARED_FIELDS})
4237
})
4338
public class WebMvcSecurityHints implements NativeConfiguration {

0 commit comments

Comments
 (0)