chore: Remove unused method

This commit is contained in:
Shrikant Sharat Kandula 2024-05-14 20:18:37 +05:30 committed by GitHub
parent e6311595eb
commit 36eaf3bd57
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -38,21 +38,6 @@ public final class AppsmithBeanUtils {
BeanUtils.copyProperties(src, target, getNullPropertyNames(src));
}
public static int countOfNonNullFields(Object source) {
int count = 0;
final BeanWrapper src = new BeanWrapperImpl(source);
java.beans.PropertyDescriptor[] pds = src.getPropertyDescriptors();
for (java.beans.PropertyDescriptor pd : pds) {
Object srcValue = src.getPropertyValue(pd.getName());
if (srcValue != null) {
count++;
}
}
return count++;
}
public static void copyNestedNonNullProperties(Object source, Object target) {
if (source == null || target == null) {
return;