diff --git a/common/source/java/ch/systemsx/cisd/common/utilities/BeanUtils.java b/common/source/java/ch/systemsx/cisd/common/utilities/BeanUtils.java index 8b8aca066caa06eeda84607296330815e124eee2..701e5ec153be00371b468b659e2aae4e27cc5422 100644 --- a/common/source/java/ch/systemsx/cisd/common/utilities/BeanUtils.java +++ b/common/source/java/ch/systemsx/cisd/common/utilities/BeanUtils.java @@ -369,7 +369,7 @@ public final class BeanUtils try { T destinationBean = - (beanInstance != null) ? beanInstance : instantiateBean(beanClass, sourceBean, + beanInstance != null ? beanInstance : instantiateBean(beanClass, sourceBean, setterAnnotations); if (isArray(destinationBean)) { @@ -936,7 +936,7 @@ public final class BeanUtils final List<PropertyDescriptor> descriptors = new ArrayList<PropertyDescriptor>(Arrays.asList(Introspector.getBeanInfo(clazz) .getPropertyDescriptors())); - for (final Iterator<PropertyDescriptor> iter = descriptors.iterator(); iter.hasNext();) + for (final Iterator<PropertyDescriptor> iter = descriptors.iterator(); iter.hasNext(); /**/) { final PropertyDescriptor descriptor = iter.next(); // If no write method, remove it. For instance 'class' property does not have any