diff --git a/spring-core/src/main/java/org/springframework/util/PatternMatchUtils.java b/spring-core/src/main/java/org/springframework/util/PatternMatchUtils.java index 67871015cae..f533c301599 100644 --- a/spring-core/src/main/java/org/springframework/util/PatternMatchUtils.java +++ b/spring-core/src/main/java/org/springframework/util/PatternMatchUtils.java @@ -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. @@ -19,8 +19,8 @@ package org.springframework.util; 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 @@ -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 @@ -74,8 +74,8 @@ public abstract class PatternMatchUtils { /** * 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