Tightened StringValueResolver contract

Issue: SPR-14842
This commit is contained in:
Juergen Hoeller
2016-10-28 15:28:42 +02:00
parent 13001b9aff
commit 20419d72ef
2 changed files with 11 additions and 5 deletions

View File

@@ -31,8 +31,11 @@ public interface StringValueResolver {
/**
* Resolve the given String value, for example parsing placeholders.
* @param strVal the original String value
* @return the resolved String value
* @param strVal the original String value (never {@code null})
* @return the resolved String value (may be {@code null} when resolved to a null
* value), possibly the original String value itself (in case of no placeholders
* to resolve or when ignoring unresolvable placeholders)
* @throws IllegalArgumentException in case of an unresolvable String value
*/
String resolveStringValue(String strVal);