From 3ff81a47c95bb28a1f9d49b458601ab5270ede20 Mon Sep 17 00:00:00 2001 From: Sam Brannen Date: Wed, 2 Aug 2023 10:33:34 +0300 Subject: [PATCH] Polish PathPatternParser --- .../web/util/pattern/PathPatternParser.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/spring-web/src/main/java/org/springframework/web/util/pattern/PathPatternParser.java b/spring-web/src/main/java/org/springframework/web/util/pattern/PathPatternParser.java index 30ff6ff55c5d..b4d90bd20030 100644 --- a/spring-web/src/main/java/org/springframework/web/util/pattern/PathPatternParser.java +++ b/spring-web/src/main/java/org/springframework/web/util/pattern/PathPatternParser.java @@ -43,7 +43,7 @@ public class PathPatternParser { /** - * Whether a {@link PathPattern} produced by this parser should + * Configure whether a {@link PathPattern} produced by this parser should * automatically match request paths with a trailing slash. *

If set to {@code true} a {@code PathPattern} without a trailing slash * will also match request paths with a trailing slash. If set to @@ -70,7 +70,7 @@ public boolean isMatchOptionalTrailingSeparator() { } /** - * Whether path pattern matching should be case-sensitive. + * Configure whether path pattern matching should be case-sensitive. *

The default is {@code true}. */ public void setCaseSensitive(boolean caseSensitive) { @@ -96,7 +96,7 @@ public void setPathOptions(PathContainer.Options pathOptions) { } /** - * Return the {@link #setPathOptions configured} pattern parsing options. + * Get the {@link #setPathOptions configured} pattern parsing options. * @since 5.2 */ public PathContainer.Options getPathOptions() { @@ -160,5 +160,7 @@ private void raiseError() { throw new UnsupportedOperationException( "This is a read-only, shared instance that cannot be modified"); } + }; + }