Yaniv Bronhaim has uploaded a new change for review.

Change subject: Avoid using constants in model
......................................................................

Avoid using constants in model

Change-Id: I17e9a9936de5912dcd8d37aab33bb4da5659d724
Signed-off-by: Yaniv Bronhaim <[email protected]>
---
M 
frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/hosts/NewHostModel.java
1 file changed, 2 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/32/36232/1

diff --git 
a/frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/hosts/NewHostModel.java
 
b/frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/hosts/NewHostModel.java
index 79f66e2..343e176 100644
--- 
a/frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/hosts/NewHostModel.java
+++ 
b/frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/hosts/NewHostModel.java
@@ -96,7 +96,7 @@
         if (dhost != null && dhg != null) {
             vds.setVdsName(dhost.getName());
             vds.setHostName(dhost.getName() + "." + //$NON-NLS-1$
-                    (dhg.getDomainName() != null ? dhg.getDomainName() : 
constants.empty()));
+                    (dhg.getDomainName() != null ? dhg.getDomainName() : "")); 
//$NON-NLS-1$
         }
         updateModelFromVds(vds, null, false, null);
     }
@@ -107,7 +107,7 @@
         if (dhg != null) {
             vds.setVdsName(getName().getEntity());
             vds.setHostName(getName().getEntity() + "." + //$NON-NLS-1$
-                    (dhg.getDomainName() != null ? dhg.getDomainName() : 
constants.empty()));
+                    (dhg.getDomainName() != null ? dhg.getDomainName() : "")); 
//$NON-NLS-1$
         }
         updateModelFromVds(vds, null, false, null);
     }


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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I17e9a9936de5912dcd8d37aab33bb4da5659d724
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Yaniv Bronhaim <[email protected]>
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to