Allon Mureinik has uploaded a new change for review.

Change subject: core: ChangeDiskCommand clenaup
......................................................................

core: ChangeDiskCommand clenaup

Removed usage of the deprecated StringHelper class from
ChangeDiskCommand and used a simple equals() call on the constant string
instead.

Change-Id: I1173561fe3dc44d7f4d7951d5772440ac7601fd2
Signed-off-by: Allon Mureinik <[email protected]>
---
M 
backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/ChangeDiskCommand.java
1 file changed, 1 insertion(+), 2 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/03/8203/1

diff --git 
a/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/ChangeDiskCommand.java
 
b/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/ChangeDiskCommand.java
index c7f153d..887d1ce 100644
--- 
a/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/ChangeDiskCommand.java
+++ 
b/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/ChangeDiskCommand.java
@@ -6,7 +6,6 @@
 import org.ovirt.engine.core.common.businessentities.VM;
 import org.ovirt.engine.core.common.vdscommands.ChangeDiskVDSCommandParameters;
 import org.ovirt.engine.core.common.vdscommands.VDSCommandType;
-import org.ovirt.engine.core.compat.StringHelper;
 import org.ovirt.engine.core.compat.backendcompat.Path;
 import org.ovirt.engine.core.dal.VdcBllMessages;
 import org.ovirt.engine.core.dal.dbbroker.auditloghandling.CustomLogField;
@@ -64,7 +63,7 @@
 
     @Override
     public AuditLogType getAuditLogTypeValue() {
-        return getSucceeded() ? StringHelper.EqOp(mCdImagePath, "") ? 
AuditLogType.USER_EJECT_VM_DISK
+        return getSucceeded() ? "".equals(mCdImagePath) ? 
AuditLogType.USER_EJECT_VM_DISK
                 : AuditLogType.USER_CHANGE_DISK_VM : 
AuditLogType.USER_FAILED_CHANGE_DISK_VM;
     }
 }


--
To view, visit http://gerrit.ovirt.org/8203
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I1173561fe3dc44d7f4d7951d5772440ac7601fd2
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

Reply via email to