Skip to content

Commit b1da893

Browse files
committed
MatchableHandlerMapping is backwards compatible
1 parent 7391f9b commit b1da893

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

spring-webmvc/src/main/java/org/springframework/web/servlet/handler/MatchableHandlerMapping.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,9 @@ public interface MatchableHandlerMapping extends HandlerMapping {
4242
* @since 5.3
4343
*/
4444
@Nullable
45-
PathPatternParser getPatternParser();
45+
default PathPatternParser getPatternParser() {
46+
return null;
47+
}
4648

4749
/**
4850
* Determine whether the request matches the given pattern. Use this method

0 commit comments

Comments
 (0)