From 555404e679786429a4ab352798a10e2fe68b8bab Mon Sep 17 00:00:00 2001 From: Sam Brannen Date: Wed, 25 Oct 2023 16:36:53 +0200 Subject: [PATCH] Polishing --- .../springframework/util/PatternMatchUtils.java | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) 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 67871015ca..f533c30159 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