Polish PathPattern to refine null-safety

Signed-off-by: Yanming Zhou <zhouyanming@gmail.com>
This commit is contained in:
Yanming Zhou
2026-09-18 14:30:08 +02:00
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)