mirror of
https://github.com/spring-projects/spring-framework
synced 2026-06-08 17:33:33 +00:00
Nullability fine-tuning around bean properties
Issue: SPR-15720 Issue: SPR-15792
This commit is contained in:
+1
-1
@@ -126,7 +126,7 @@ public class FieldRetrievingFactoryBean
|
||||
* @see #setTargetObject
|
||||
*/
|
||||
public void setTargetField(@Nullable String targetField) {
|
||||
this.targetField = StringUtils.trimAllWhitespace(targetField);
|
||||
this.targetField = (targetField != null ? StringUtils.trimAllWhitespace(targetField) : null);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user