You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "dawei xiong (Jira)" <ji...@apache.org> on 2024/11/12 08:50:00 UTC
[jira] [Created] (BEANUTILS-573) Add a New Method, `copyNonNullProperties`, to the BeanUtils Library
dawei xiong created BEANUTILS-573:
-------------------------------------
Summary: Add a New Method, `copyNonNullProperties`, to the BeanUtils Library
Key: BEANUTILS-573
URL: https://issues.apache.org/jira/browse/BEANUTILS-573
Project: Commons BeanUtils
Issue Type: New Feature
Components: Bean / Property Utils
Affects Versions: 1.9.4, 2.0.0
Reporter: dawei xiong
Fix For: 2.0.0, 1.9.4
When we input an incomplete object (i.e., an object where not all properties are assigned values, or said some properties are null) and need to copy its properties to another object, we do not always want to overwrite the target object's corresponding properties with null values from the input. This feature will prevent null values from overwriting existing values in the target object, ensuring that only the provided properties are updated.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)