mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-10-06 15:09:34 +00:00
Polish PathPattern to refine null-safety
Signed-off-by: Yanming Zhou <zhouyanming@gmail.com>
This commit is contained in:
committed by
Brian Clozel
parent
c1ba31c40f
commit
00291a5172
@@ -94,7 +94,7 @@ public class PathPattern implements Comparable<PathPattern> {
|
||||
* <li>Consider length (longer wins)
|
||||
* </ol>
|
||||
*/
|
||||
public static final Comparator<PathPattern> SPECIFICITY_COMPARATOR =
|
||||
public static final Comparator<@Nullable PathPattern> SPECIFICITY_COMPARATOR =
|
||||
Comparator.nullsLast(
|
||||
Comparator.<PathPattern>
|
||||
comparingInt(p -> p.isCatchAll() ? 1 : 0)
|
||||
|
||||
Reference in New Issue
Block a user