Skip to content

Commit 016a4c4

Browse files
remeiosbrannen
authored andcommitted
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>
1 parent 233f755 commit 016a4c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spring-core/src/main/java/org/springframework/core/SpringProperties.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ public static void setFlag(String key) {
123123
/**
124124
* Retrieve the flag for the given property key.
125125
* @param key the property key
126-
* @return {@code true} if the property is set to "true",
126+
* @return {@code true} if the property is not {@code null} and is equal, ignoring case, to the string "true",
127127
* {@code} false otherwise
128128
*/
129129
public static boolean getFlag(String key) {

0 commit comments

Comments
 (0)