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:
parent
233f755416
commit
016a4c4260
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue