Skip to content

Commit db04b5a

Browse files
committed
Merge branch '6.3.x'
2 parents 0b98eb4 + ff41521 commit db04b5a

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)