1
1
/*
2
- * Copyright 2002-2021 the original author or authors.
2
+ * Copyright 2002-2023 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
19
19
import org .springframework .lang .Nullable ;
20
20
21
21
/**
22
- * Utility methods for simple pattern matching, in particular for
23
- * Spring's typical " xxx*", " *xxx" and " *xxx*" pattern styles.
22
+ * Utility methods for simple pattern matching, in particular for Spring's typical
23
+ * {@code xxx*}, {@code *xxx}, {@code *xxx*}, and {@code xxx*yyy} pattern styles.
24
24
*
25
25
* @author Juergen Hoeller
26
26
* @since 2.0
@@ -29,8 +29,8 @@ public abstract class PatternMatchUtils {
29
29
30
30
/**
31
31
* Match a String against the given pattern, supporting the following simple
32
- * pattern styles: " xxx*", " *xxx", " *xxx*" and " xxx*yyy" matches (with an
33
- * arbitrary number of pattern parts), as well as direct equality.
32
+ * pattern styles: {@code xxx*}, {@code *xxx}, {@code *xxx*}, and {@code xxx*yyy}
33
+ * matches (with an arbitrary number of pattern parts), as well as direct equality.
34
34
* @param pattern the pattern to match against
35
35
* @param str the String to match
36
36
* @return whether the String matches the given pattern
@@ -74,8 +74,8 @@ public static boolean simpleMatch(@Nullable String pattern, @Nullable String str
74
74
75
75
/**
76
76
* Match a String against the given patterns, supporting the following simple
77
- * pattern styles: " xxx*", " *xxx", " *xxx*" and " xxx*yyy" matches (with an
78
- * arbitrary number of pattern parts), as well as direct equality.
77
+ * pattern styles: {@code xxx*}, {@code *xxx}, {@code *xxx*}, and {@code xxx*yyy}
78
+ * matches (with an arbitrary number of pattern parts), as well as direct equality.
79
79
* @param patterns the patterns to match against
80
80
* @param str the String to match
81
81
* @return whether the String matches any of the given patterns
0 commit comments