Polishing

This commit is contained in:
Sam Brannen 2023-10-25 16:36:53 +02:00
parent 6c4cbd2aab
commit 555404e679
1 changed files with 7 additions and 7 deletions

View File

@ -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"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -19,8 +19,8 @@ package org.springframework.util;
import org.springframework.lang.Nullable; import org.springframework.lang.Nullable;
/** /**
* Utility methods for simple pattern matching, in particular for * Utility methods for simple pattern matching, in particular for Spring's typical
* Spring's typical "xxx*", "*xxx" and "*xxx*" pattern styles. * {@code xxx*}, {@code *xxx}, {@code *xxx*}, and {@code xxx*yyy} pattern styles.
* *
* @author Juergen Hoeller * @author Juergen Hoeller
* @since 2.0 * @since 2.0
@ -29,8 +29,8 @@ public abstract class PatternMatchUtils {
/** /**
* Match a String against the given pattern, supporting the following simple * Match a String against the given pattern, supporting the following simple
* pattern styles: "xxx*", "*xxx", "*xxx*" and "xxx*yyy" matches (with an * pattern styles: {@code xxx*}, {@code *xxx}, {@code *xxx*}, and {@code xxx*yyy}
* arbitrary number of pattern parts), as well as direct equality. * matches (with an arbitrary number of pattern parts), as well as direct equality.
* @param pattern the pattern to match against * @param pattern the pattern to match against
* @param str the String to match * @param str the String to match
* @return whether the String matches the given pattern * @return whether the String matches the given pattern
@ -74,8 +74,8 @@ public abstract class PatternMatchUtils {
/** /**
* Match a String against the given patterns, supporting the following simple * Match a String against the given patterns, supporting the following simple
* pattern styles: "xxx*", "*xxx", "*xxx*" and "xxx*yyy" matches (with an * pattern styles: {@code xxx*}, {@code *xxx}, {@code *xxx*}, and {@code xxx*yyy}
* arbitrary number of pattern parts), as well as direct equality. * matches (with an arbitrary number of pattern parts), as well as direct equality.
* @param patterns the patterns to match against * @param patterns the patterns to match against
* @param str the String to match * @param str the String to match
* @return whether the String matches any of the given patterns * @return whether the String matches any of the given patterns