Skip to content

Commit bc91e0e

Browse files
committed
Revise PropertyResolver Javadoc to highlight resolution semantics
1 parent 8599ee6 commit bc91e0e

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

+9-9
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)
@@ -47,7 +47,7 @@ public interface PropertyResolver {
4747
String getProperty(String key);
4848

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

5959
/**
60-
* Return the property value associated with the given key,
60+
* Resolve the property value associated with the given key,
6161
* or {@code null} if the key cannot be resolved.
6262
* @param key the property name to resolve
6363
* @param targetType the expected type of the property value
@@ -67,7 +67,7 @@ public interface PropertyResolver {
6767
<T> T getProperty(String key, Class<T> targetType);
6868

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

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

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

0 commit comments

Comments
 (0)