Skip to content

Commit b22061d

Browse files
committed
Merge branch '5.8.x' into 6.2.x
2 parents 69231c5 + 97cefa6 commit b22061d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

config/src/main/java/org/springframework/security/config/annotation/web/AbstractRequestMatcherRegistry.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -509,7 +509,8 @@ static class DispatcherServletRequestMatcher implements RequestMatcher {
509509
public boolean matches(HttpServletRequest request) {
510510
String name = request.getHttpServletMapping().getServletName();
511511
ServletRegistration registration = this.servletContext.getServletRegistration(name);
512-
Assert.notNull(registration, computeErrorMessage(this.servletContext.getServletRegistrations().values()));
512+
Assert.notNull(registration,
513+
() -> computeErrorMessage(this.servletContext.getServletRegistrations().values()));
513514
try {
514515
Class<?> clazz = Class.forName(registration.getClassName());
515516
return DispatcherServlet.class.isAssignableFrom(clazz);

0 commit comments

Comments
 (0)