File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
spring-core/src/main/java/org/springframework/util Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -614,14 +614,15 @@ else if (path1EndsWithSeparator || path2StartsWithSeparator) {
614
614
/**
615
615
* Given a full path, returns a {@link Comparator} suitable for sorting patterns in order of
616
616
* 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.
620
621
* <ol>
621
622
* <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>
623
625
* </ol>
624
- * the returned comparator will sort this list so that the order will be as indicated.
625
626
* <p>The full path given as parameter is used to test for exact matches. So when the given path
626
627
* is {@code /hotels/2}, the pattern {@code /hotels/2} will be sorted before {@code /hotels/1}.
627
628
* @param path the full path to use for comparison
You can’t perform that action at this time.
0 commit comments