Nullability fine-tuning around bean properties
Issue: SPR-15720 Issue: SPR-15792
This commit is contained in:
@@ -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