mirror of
https://github.com/spring-projects/spring-security.git
synced 2026-03-31 06:26:24 +00:00
Currently, the List-receiving constructors of AndRequestMatcher, OrRequestMatcher, AndServerWebExchangeMatcher, and OrServerWebExchangeMatcher don't support covariance, which adds obstacles to users of these APIs. For example, one cannot pass a List<PathPatternRequestMatcher> to OrRequestMatcher(List<RequestMatcher>). This commit resolves the aforementioned problem. It should not break existing code. Signed-off-by: Ziqin Wang <ziqin@wangziqin.net>