Skip to content

Commit

Permalink
Polishing
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrannen committed Oct 25, 2023
1 parent 6c4cbd2 commit 555404e
Showing 1 changed file with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2002-2021 the original author or authors.
* Copyright 2002-2023 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand All @@ -19,8 +19,8 @@
import org.springframework.lang.Nullable;

/**
* Utility methods for simple pattern matching, in particular for
* Spring's typical "xxx*", "*xxx" and "*xxx*" pattern styles.
* Utility methods for simple pattern matching, in particular for Spring's typical
* {@code xxx*}, {@code *xxx}, {@code *xxx*}, and {@code xxx*yyy} pattern styles.
*
* @author Juergen Hoeller
* @since 2.0
Expand All @@ -29,8 +29,8 @@ public abstract class PatternMatchUtils {

/**
* Match a String against the given pattern, supporting the following simple
* pattern styles: "xxx*", "*xxx", "*xxx*" and "xxx*yyy" matches (with an
* arbitrary number of pattern parts), as well as direct equality.
* pattern styles: {@code xxx*}, {@code *xxx}, {@code *xxx*}, and {@code xxx*yyy}
* matches (with an arbitrary number of pattern parts), as well as direct equality.
* @param pattern the pattern to match against
* @param str the String to match
* @return whether the String matches the given pattern
Expand Down Expand Up @@ -74,8 +74,8 @@ public static boolean simpleMatch(@Nullable String pattern, @Nullable String str

/**
* Match a String against the given patterns, supporting the following simple
* pattern styles: "xxx*", "*xxx", "*xxx*" and "xxx*yyy" matches (with an
* arbitrary number of pattern parts), as well as direct equality.
* pattern styles: {@code xxx*}, {@code *xxx}, {@code *xxx*}, and {@code xxx*yyy}
* matches (with an arbitrary number of pattern parts), as well as direct equality.
* @param patterns the patterns to match against
* @param str the String to match
* @return whether the String matches any of the given patterns
Expand Down

0 comments on commit 555404e

Please sign in to comment.