Skip to content

Commit 2e5d047

Browse files
committed
Polishing
1 parent d2868f5 commit 2e5d047

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spring-beans/src/main/java/org/springframework/beans/BeanUtils.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -792,11 +792,11 @@ private static void copyProperties(Object source, Object target, @Nullable Class
792792
actualEditable = editable;
793793
}
794794
PropertyDescriptor[] targetPds = getPropertyDescriptors(actualEditable);
795-
Set<String> ignoreSet = (ignoreProperties != null ? new HashSet<>(Arrays.asList(ignoreProperties)) : null);
795+
Set<String> ignoredProps = (ignoreProperties != null ? new HashSet<>(Arrays.asList(ignoreProperties)) : null);
796796

797797
for (PropertyDescriptor targetPd : targetPds) {
798798
Method writeMethod = targetPd.getWriteMethod();
799-
if (writeMethod != null && (ignoreSet == null || !ignoreSet.contains(targetPd.getName()))) {
799+
if (writeMethod != null && (ignoredProps == null || !ignoredProps.contains(targetPd.getName()))) {
800800
PropertyDescriptor sourcePd = getPropertyDescriptor(source.getClass(), targetPd.getName());
801801
if (sourcePd != null) {
802802
Method readMethod = sourcePd.getReadMethod();

0 commit comments

Comments
 (0)