Skip to content

Commit ee34fdf

Browse files
rstoyanchevkenny5he
authored andcommitted
MatchableHandlerMapping is backwards compatible
1 parent 2dc42af commit ee34fdf

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

+3-1
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)