diff --git a/spring-core/src/main/java/org/springframework/core/SpringProperties.java b/spring-core/src/main/java/org/springframework/core/SpringProperties.java index 54f0d079f0a3..3097e9e5b998 100644 --- a/spring-core/src/main/java/org/springframework/core/SpringProperties.java +++ b/spring-core/src/main/java/org/springframework/core/SpringProperties.java @@ -122,7 +122,7 @@ public static void setFlag(String key) { /** * 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) {