From 4f4b9f6b1ba80175c174f328f36f3720667fbdd9 Mon Sep 17 00:00:00 2001 From: Rossen Stoyanchev Date: Thu, 29 Aug 2019 15:53:05 +0300 Subject: [PATCH] Fix checkstyle violation --- .../web/servlet/resource/ResourceUrlEncodingFilter.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/spring-webmvc/src/main/java/org/springframework/web/servlet/resource/ResourceUrlEncodingFilter.java b/spring-webmvc/src/main/java/org/springframework/web/servlet/resource/ResourceUrlEncodingFilter.java index c2a4486a3f..ffdc573a32 100644 --- a/spring-webmvc/src/main/java/org/springframework/web/servlet/resource/ResourceUrlEncodingFilter.java +++ b/spring-webmvc/src/main/java/org/springframework/web/servlet/resource/ResourceUrlEncodingFilter.java @@ -162,6 +162,11 @@ public class ResourceUrlEncodingFilter extends GenericFilterBean { } + /** + * Runtime exception to get far enough (to ResourceUrlProviderExposingInterceptor) + * where it can be re-thrown as ServletRequestBindingException to result in + * a 400 response. + */ @SuppressWarnings("serial") static class LookupPathIndexException extends IllegalArgumentException {