Skip to content

Commit 3ff81a4

Browse files
committed
Polish PathPatternParser
1 parent dcec61a commit 3ff81a4

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

spring-web/src/main/java/org/springframework/web/util/pattern/PathPatternParser.java

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public class PathPatternParser {
4343

4444

4545
/**
46-
* Whether a {@link PathPattern} produced by this parser should
46+
* Configure whether a {@link PathPattern} produced by this parser should
4747
* automatically match request paths with a trailing slash.
4848
* <p>If set to {@code true} a {@code PathPattern} without a trailing slash
4949
* will also match request paths with a trailing slash. If set to
@@ -70,7 +70,7 @@ public boolean isMatchOptionalTrailingSeparator() {
7070
}
7171

7272
/**
73-
* Whether path pattern matching should be case-sensitive.
73+
* Configure whether path pattern matching should be case-sensitive.
7474
* <p>The default is {@code true}.
7575
*/
7676
public void setCaseSensitive(boolean caseSensitive) {
@@ -96,7 +96,7 @@ public void setPathOptions(PathContainer.Options pathOptions) {
9696
}
9797

9898
/**
99-
* Return the {@link #setPathOptions configured} pattern parsing options.
99+
* Get the {@link #setPathOptions configured} pattern parsing options.
100100
* @since 5.2
101101
*/
102102
public PathContainer.Options getPathOptions() {
@@ -160,5 +160,7 @@ private void raiseError() {
160160
throw new UnsupportedOperationException(
161161
"This is a read-only, shared instance that cannot be modified");
162162
}
163+
163164
};
165+
164166
}

0 commit comments

Comments
 (0)