Skip to content

Commit cb8db1e

Browse files
committed
Polish Javadoc
1 parent a31a4f8 commit cb8db1e

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

spring-core/src/main/java/org/springframework/util/AntPathMatcher.java

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -614,14 +614,15 @@ else if (path1EndsWithSeparator || path2StartsWithSeparator) {
614614
/**
615615
* Given a full path, returns a {@link Comparator} suitable for sorting patterns in order of
616616
* explicitness.
617-
* <p>This{@code Comparator} will {@linkplain java.util.List#sort(Comparator) sort}
618-
* a list so that more specific patterns (without uri templates or wild cards) come before
619-
* generic patterns. So given a list with the following patterns:
617+
* <p>This {@code Comparator} will {@linkplain java.util.List#sort(Comparator) sort}
618+
* a list so that more specific patterns (without URI templates or wild cards) come before
619+
* generic patterns. So given a list with the following patterns, the returned comparator
620+
* will sort this list so that the order will be as indicated.
620621
* <ol>
621622
* <li>{@code /hotels/new}</li>
622-
* <li>{@code /hotels/{hotel}}</li> <li>{@code /hotels/*}</li>
623+
* <li>{@code /hotels/{hotel}}</li>
624+
* <li>{@code /hotels/*}</li>
623625
* </ol>
624-
* the returned comparator will sort this list so that the order will be as indicated.
625626
* <p>The full path given as parameter is used to test for exact matches. So when the given path
626627
* is {@code /hotels/2}, the pattern {@code /hotels/2} will be sorted before {@code /hotels/1}.
627628
* @param path the full path to use for comparison

0 commit comments

Comments
 (0)