Skip to content

Commit fef9691

Browse files
committed
Merge branch '6.2.x'
2 parents 964d674 + bc91e0e commit fef9691

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

spring-core/src/main/java/org/springframework/core/env/PropertyResolver.java

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2020 the original author or authors.
2+
* Copyright 2002-2025 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -30,13 +30,13 @@
3030
public interface PropertyResolver {
3131

3232
/**
33-
* Return whether the given property key is available for resolution,
34-
* i.e. if the value for the given key is not {@code null}.
33+
* Determine whether the given property key is available for resolution
34+
* — for example, if the value for the given key is not {@code null}.
3535
*/
3636
boolean containsProperty(String key);
3737

3838
/**
39-
* Return the property value associated with the given key,
39+
* Resolve the property value associated with the given key,
4040
* or {@code null} if the key cannot be resolved.
4141
* @param key the property name to resolve
4242
* @see #getProperty(String, String)
@@ -46,7 +46,7 @@ public interface PropertyResolver {
4646
@Nullable String getProperty(String key);
4747

4848
/**
49-
* Return the property value associated with the given key, or
49+
* Resolve the property value associated with the given key, or
5050
* {@code defaultValue} if the key cannot be resolved.
5151
* @param key the property name to resolve
5252
* @param defaultValue the default value to return if no value is found
@@ -56,7 +56,7 @@ public interface PropertyResolver {
5656
String getProperty(String key, String defaultValue);
5757

5858
/**
59-
* Return the property value associated with the given key,
59+
* Resolve the property value associated with the given key,
6060
* or {@code null} if the key cannot be resolved.
6161
* @param key the property name to resolve
6262
* @param targetType the expected type of the property value
@@ -65,7 +65,7 @@ public interface PropertyResolver {
6565
<T> @Nullable T getProperty(String key, Class<T> targetType);
6666

6767
/**
68-
* Return the property value associated with the given key,
68+
* Resolve the property value associated with the given key,
6969
* or {@code defaultValue} if the key cannot be resolved.
7070
* @param key the property name to resolve
7171
* @param targetType the expected type of the property value
@@ -75,14 +75,14 @@ public interface PropertyResolver {
7575
<T> T getProperty(String key, Class<T> targetType, T defaultValue);
7676

7777
/**
78-
* Return the property value associated with the given key (never {@code null}).
78+
* Resolve the property value associated with the given key (never {@code null}).
7979
* @throws IllegalStateException if the key cannot be resolved
8080
* @see #getRequiredProperty(String, Class)
8181
*/
8282
String getRequiredProperty(String key) throws IllegalStateException;
8383

8484
/**
85-
* Return the property value associated with the given key, converted to the given
85+
* Resolve the property value associated with the given key, converted to the given
8686
* targetType (never {@code null}).
8787
* @throws IllegalStateException if the given key cannot be resolved
8888
*/

0 commit comments

Comments
 (0)