diff --git a/spring-web/src/main/java/org/springframework/web/util/pattern/PathPattern.java b/spring-web/src/main/java/org/springframework/web/util/pattern/PathPattern.java
index 69007b5aec..acdab2eba2 100644
--- a/spring-web/src/main/java/org/springframework/web/util/pattern/PathPattern.java
+++ b/spring-web/src/main/java/org/springframework/web/util/pattern/PathPattern.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2002-2018 the original author or authors.
+ * Copyright 2002-2019 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -40,16 +40,16 @@ import org.springframework.util.StringUtils;
*
{@code ?} matches one character
* {@code *} matches zero or more characters within a path segment
* {@code **} matches zero or more path segments until the end of the path
- * {@code {spring}} matches a path segment and captures it as a variable named "spring"
- * {@code {spring:[a-z]+}} matches the regexp {@code [a-z]+} as a path variable named "spring"
- * {@code {*spring}} matches zero or more path segments until the end of the path
+ * {spring} matches a path segment and captures it as a variable named "spring"
+ * {spring:[a-z]+} matches the regexp {@code [a-z]+} as a path variable named "spring"
+ * {*spring} matches zero or more path segments until the end of the path
* and captures it as a variable named "spring"
*
*
* Examples
*
- * - {@code /pages/t?st.html} — matches {@code /pages/test.html} but also
- * {@code /pages/tast.html} but not {@code /pages/toast.html}
+ * - {@code /pages/t?st.html} — matches {@code /pages/test.html} as well as
+ * {@code /pages/tXst.html} but not {@code /pages/toast.html}
* - {@code /resources/*.png} — matches all {@code .png} files in the
* {@code resources} directory
* /resources/** — matches all files
@@ -58,9 +58,9 @@ import org.springframework.util.StringUtils;
* /resources/{*path} — matches all files
* underneath the {@code /resources/} path and captures their relative path in
* a variable named "path"; {@code /resources/image.png} will match with
- * "spring" -> "/image.png", and {@code /resources/css/spring.css} will match
- * with "spring" -> "/css/spring.css"
- * - {@code /resources/{filename:\\w+}.dat} will match {@code /resources/spring.dat}
+ * "spring" → "/image.png", and {@code /resources/css/spring.css} will match
+ * with "spring" → "/css/spring.css"
+ * /resources/{filename:\\w+}.dat will match {@code /resources/spring.dat}
* and assign the value {@code "spring"} to the {@code filename} variable
*
*
@@ -260,10 +260,10 @@ public class PathPattern implements Comparable {
/**
* Determine the pattern-mapped part for the given path.
* For example:
- * - '{@code /docs/cvs/commit.html}' and '{@code /docs/cvs/commit.html} -> ''
- * - '{@code /docs/*}' and '{@code /docs/cvs/commit}' -> '{@code cvs/commit}'
- * - '{@code /docs/cvs/*.html}' and '{@code /docs/cvs/commit.html} -> '{@code commit.html}'
- * - '{@code /docs/**}' and '{@code /docs/cvs/commit} -> '{@code cvs/commit}'
+ * - '{@code /docs/cvs/commit.html}' and '{@code /docs/cvs/commit.html} → ''
+ * - '{@code /docs/*}' and '{@code /docs/cvs/commit}' → '{@code cvs/commit}'
+ * - '{@code /docs/cvs/*.html}' and '{@code /docs/cvs/commit.html} → '{@code commit.html}'
+ * - '{@code /docs/**}' and '{@code /docs/cvs/commit} → '{@code cvs/commit}'
*
* Notes:
*