Michael Pasternak has uploaded a new change for review. Change subject: sdk: Host.getRebootAfterInstallation() returns False (null was expected) #985842 ......................................................................
sdk: Host.getRebootAfterInstallation() returns False (null was expected) #985842 Change-Id: I20be53c2b1f78efb92c4d849854d45632ce9879f Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=985842 Signed-off-by: Michael pasternak <mpast...@redhat.com> --- M ovirt-engine-sdk-java/src/main/java/org/ovirt/engine/sdk/mapping/Mapper.java 1 file changed, 5 insertions(+), 4 deletions(-) git pull ssh://gerrit.ovirt.org:29418/ovirt-engine-sdk-java refs/changes/69/18969/1 diff --git a/ovirt-engine-sdk-java/src/main/java/org/ovirt/engine/sdk/mapping/Mapper.java b/ovirt-engine-sdk-java/src/main/java/org/ovirt/engine/sdk/mapping/Mapper.java index df0ec4f..8303f3e 100644 --- a/ovirt-engine-sdk-java/src/main/java/org/ovirt/engine/sdk/mapping/Mapper.java +++ b/ovirt-engine-sdk-java/src/main/java/org/ovirt/engine/sdk/mapping/Mapper.java @@ -21,7 +21,7 @@ import javax.xml.bind.JAXBException; -import org.apache.commons.beanutils.BeanUtils; +import org.apache.commons.beanutils.PropertyUtils; import org.ovirt.engine.sdk.utils.SerializationHelper; import org.ovirt.engine.sdk.web.HttpProxyBroker; @@ -54,7 +54,7 @@ dstobj = to.newInstance(); } if (dstobj != null) { - BeanUtils.copyProperties(dstobj, from); + PropertyUtils.copyProperties(dstobj, from); excludeExceptions(dstobj); } } catch (InstantiationException e) { @@ -84,10 +84,11 @@ * * @throws IllegalAccessException * @throws InvocationTargetException + * @throws NoSuchMethodException */ - private static <T> void excludeExceptions(T dstobj) throws IllegalAccessException, InvocationTargetException { + private static <T> void excludeExceptions(T dstobj) throws IllegalAccessException, InvocationTargetException, NoSuchMethodException { for (String field : MAPPING_EXCEPTIONS) { - BeanUtils.setProperty(dstobj, field, null); + PropertyUtils.setProperty(dstobj, field, null); } } -- To view, visit http://gerrit.ovirt.org/18969 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I20be53c2b1f78efb92c4d849854d45632ce9879f Gerrit-PatchSet: 1 Gerrit-Project: ovirt-engine-sdk-java Gerrit-Branch: master Gerrit-Owner: Michael Pasternak <mpast...@redhat.com> _______________________________________________ Engine-patches mailing list Engine-patches@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-patches