Skip to content

Commit 555404e

Browse files
committed
Polishing
1 parent 6c4cbd2 commit 555404e

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

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

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2021 the original author or authors.
2+
* Copyright 2002-2023 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -19,8 +19,8 @@
1919
import org.springframework.lang.Nullable;
2020

2121
/**
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.
2424
*
2525
* @author Juergen Hoeller
2626
* @since 2.0
@@ -29,8 +29,8 @@ public abstract class PatternMatchUtils {
2929

3030
/**
3131
* 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.
3434
* @param pattern the pattern to match against
3535
* @param str the String to match
3636
* @return whether the String matches the given pattern
@@ -74,8 +74,8 @@ public static boolean simpleMatch(@Nullable String pattern, @Nullable String str
7474

7575
/**
7676
* 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.
7979
* @param patterns the patterns to match against
8080
* @param str the String to match
8181
* @return whether the String matches any of the given patterns

0 commit comments

Comments
 (0)