Update Formatting

Issue gh-15714
This commit is contained in:
Josh Cummings 2024-09-03 15:33:16 -06:00
parent f836efb912
commit 97cefa6830
1 changed files with 2 additions and 1 deletions

View File

@ -628,7 +628,8 @@ public abstract class AbstractRequestMatcherRegistry<C> {
public boolean matches(HttpServletRequest request) { public boolean matches(HttpServletRequest request) {
String name = request.getHttpServletMapping().getServletName(); String name = request.getHttpServletMapping().getServletName();
ServletRegistration registration = this.servletContext.getServletRegistration(name); ServletRegistration registration = this.servletContext.getServletRegistration(name);
Assert.notNull(registration, () -> computeErrorMessage(this.servletContext.getServletRegistrations().values())); Assert.notNull(registration,
() -> computeErrorMessage(this.servletContext.getServletRegistrations().values()));
try { try {
Class<?> clazz = Class.forName(registration.getClassName()); Class<?> clazz = Class.forName(registration.getClassName());
return DispatcherServlet.class.isAssignableFrom(clazz); return DispatcherServlet.class.isAssignableFrom(clazz);