Browse Source

Merge branch '6.2.x'

pull/34319/head
Sam Brannen 11 months ago
parent
commit
d888432dca
  1. 6
      spring-core/src/main/java/org/springframework/core/SpringProperties.java

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

@ -1,5 +1,5 @@ @@ -1,5 +1,5 @@
/*
* Copyright 2002-2023 the original author or authors.
* Copyright 2002-2025 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.
@ -122,8 +122,8 @@ public final class SpringProperties { @@ -122,8 +122,8 @@ 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",
* {@code} false otherwise
* @return {@code true} if the property is set to the string "true"
* (ignoring case), {@code} false otherwise
*/
public static boolean getFlag(String key) {
return Boolean.parseBoolean(getProperty(key));

Loading…
Cancel
Save