Improve Javadoc for SpringProperties.getFlag()

getFlag() returns true when the property is equal, ignoring case, to the
string "true", not just "true"; "TrUe" also means true.

Closes gh-34295

Signed-off-by: Mengqi Xu <2663479778@qq.com>
This commit is contained in:
Mengqi Xu 2025-01-21 22:53:18 +08:00 committed by Sam Brannen
parent 233f755416
commit 016a4c4260
1 changed files with 1 additions and 1 deletions

View File

@ -123,7 +123,7 @@ public final class SpringProperties {
/**
* Retrieve the flag for the given property key.
* @param key the property key
* @return {@code true} if the property is set to "true",
* @return {@code true} if the property is not {@code null} and is equal, ignoring case, to the string "true",
* {@code} false otherwise
*/
public static boolean getFlag(String key) {