Allon Mureinik has uploaded a new change for review. Change subject: core: ExportVmCommand clenaup ......................................................................
core: ExportVmCommand clenaup Removed usage of the deprecated StringHelper class from ExortVmCommand and used apache commons' StringUtils instead. Change-Id: I5405a7cb7531208b658c450a809ec658f0fc7426 Signed-off-by: Allon Mureinik <[email protected]> --- M backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/ExportVmCommand.java 1 file changed, 2 insertions(+), 2 deletions(-) git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/04/8204/1 diff --git a/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/ExportVmCommand.java b/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/ExportVmCommand.java index fdeace8..3164ac6 100644 --- a/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/ExportVmCommand.java +++ b/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/ExportVmCommand.java @@ -8,6 +8,7 @@ import java.util.List; import java.util.Map; +import org.apache.commons.lang.StringUtils; import org.ovirt.engine.core.bll.command.utils.StorageDomainSpaceChecker; import org.ovirt.engine.core.bll.job.ExecutionHandler; import org.ovirt.engine.core.bll.snapshots.SnapshotsValidator; @@ -43,7 +44,6 @@ import org.ovirt.engine.core.common.vdscommands.VDSReturnValue; import org.ovirt.engine.core.compat.Guid; import org.ovirt.engine.core.compat.KeyValuePairCompat; -import org.ovirt.engine.core.compat.StringHelper; import org.ovirt.engine.core.dal.VdcBllMessages; import org.ovirt.engine.core.dal.dbbroker.DbFacade; import org.ovirt.engine.core.utils.linq.LinqUtils; @@ -241,7 +241,7 @@ AllVmImages.add(diskImage); } } - if (StringHelper.isNullOrEmpty(vm.getvmt_name())) { + if (StringUtils.isEmpty(vm.getvmt_name())) { VmTemplate t = DbFacade.getInstance().getVmTemplateDao() .get(vm.getvmt_guid()); vm.setvmt_name(t.getname()); -- To view, visit http://gerrit.ovirt.org/8204 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I5405a7cb7531208b658c450a809ec658f0fc7426 Gerrit-PatchSet: 1 Gerrit-Project: ovirt-engine Gerrit-Branch: master Gerrit-Owner: Allon Mureinik <[email protected]> _______________________________________________ Engine-patches mailing list [email protected] http://lists.ovirt.org/mailman/listinfo/engine-patches
