Skip to content

Commit f836efb

Browse files
tugjgjzheaux
authored andcommitted
Address unnecessary method invocation
Closes gh-15714
1 parent e92a945 commit f836efb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -628,7 +628,7 @@ static class DispatcherServletRequestMatcher implements RequestMatcher {
628628
public boolean matches(HttpServletRequest request) {
629629
String name = request.getHttpServletMapping().getServletName();
630630
ServletRegistration registration = this.servletContext.getServletRegistration(name);
631-
Assert.notNull(registration, computeErrorMessage(this.servletContext.getServletRegistrations().values()));
631+
Assert.notNull(registration, () -> computeErrorMessage(this.servletContext.getServletRegistrations().values()));
632632
try {
633633
Class<?> clazz = Class.forName(registration.getClassName());
634634
return DispatcherServlet.class.isAssignableFrom(clazz);

0 commit comments

Comments
 (0)