Skip to content

Commit a1668ad

Browse files
committed
Fix Javadoc for PathPattern
1 parent 57558a4 commit a1668ad

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

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

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2018 the original author or authors.
2+
* Copyright 2002-2019 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -40,16 +40,16 @@
4040
* <li>{@code ?} matches one character</li>
4141
* <li>{@code *} matches zero or more characters within a path segment</li>
4242
* <li>{@code **} matches zero or more <em>path segments</em> until the end of the path</li>
43-
* <li>{@code {spring}} matches a <em>path segment</em> and captures it as a variable named "spring"</li>
44-
* <li>{@code {spring:[a-z]+}} matches the regexp {@code [a-z]+} as a path variable named "spring"</li>
45-
* <li>{@code {*spring}} matches zero or more <em>path segments</em> until the end of the path
43+
* <li><code>{spring}</code> matches a <em>path segment</em> and captures it as a variable named "spring"</li>
44+
* <li><code>{spring:[a-z]+}</code> matches the regexp {@code [a-z]+} as a path variable named "spring"</li>
45+
* <li><code>{*spring}</code> matches zero or more <em>path segments</em> until the end of the path
4646
* and captures it as a variable named "spring"</li>
4747
* </ul>
4848
*
4949
* <h3>Examples</h3>
5050
* <ul>
51-
* <li>{@code /pages/t?st.html} &mdash; matches {@code /pages/test.html} but also
52-
* {@code /pages/tast.html} but not {@code /pages/toast.html}</li>
51+
* <li>{@code /pages/t?st.html} &mdash; matches {@code /pages/test.html} as well as
52+
* {@code /pages/tXst.html} but not {@code /pages/toast.html}</li>
5353
* <li>{@code /resources/*.png} &mdash; matches all {@code .png} files in the
5454
* {@code resources} directory</li>
5555
* <li><code>/resources/&#42;&#42;</code> &mdash; matches all files
@@ -58,9 +58,9 @@
5858
* <li><code>/resources/{&#42;path}</code> &mdash; matches all files
5959
* underneath the {@code /resources/} path and captures their relative path in
6060
* a variable named "path"; {@code /resources/image.png} will match with
61-
* "spring" -> "/image.png", and {@code /resources/css/spring.css} will match
62-
* with "spring" -> "/css/spring.css"</li>
63-
* <li>{@code /resources/{filename:\\w+}.dat} will match {@code /resources/spring.dat}
61+
* "spring" &rarr; "/image.png", and {@code /resources/css/spring.css} will match
62+
* with "spring" &rarr; "/css/spring.css"</li>
63+
* <li><code>/resources/{filename:\\w+}.dat</code> will match {@code /resources/spring.dat}
6464
* and assign the value {@code "spring"} to the {@code filename} variable</li>
6565
* </ul>
6666
*
@@ -260,10 +260,10 @@ else if (!hasLength(pathContainer)) {
260260
/**
261261
* Determine the pattern-mapped part for the given path.
262262
* <p>For example: <ul>
263-
* <li>'{@code /docs/cvs/commit.html}' and '{@code /docs/cvs/commit.html} -> ''</li>
264-
* <li>'{@code /docs/*}' and '{@code /docs/cvs/commit}' -> '{@code cvs/commit}'</li>
265-
* <li>'{@code /docs/cvs/*.html}' and '{@code /docs/cvs/commit.html} -> '{@code commit.html}'</li>
266-
* <li>'{@code /docs/**}' and '{@code /docs/cvs/commit} -> '{@code cvs/commit}'</li>
263+
* <li>'{@code /docs/cvs/commit.html}' and '{@code /docs/cvs/commit.html} &rarr; ''</li>
264+
* <li>'{@code /docs/*}' and '{@code /docs/cvs/commit}' &rarr; '{@code cvs/commit}'</li>
265+
* <li>'{@code /docs/cvs/*.html}' and '{@code /docs/cvs/commit.html} &rarr; '{@code commit.html}'</li>
266+
* <li>'{@code /docs/**}' and '{@code /docs/cvs/commit} &rarr; '{@code cvs/commit}'</li>
267267
* </ul>
268268
* <p><b>Notes:</b>
269269
* <ul>

0 commit comments

Comments
 (0)