Alona Kaplan has uploaded a new change for review.

Change subject: webadmin: Integer should be compare with ==
......................................................................

webadmin: Integer should be compare with ==


Integer should be compate with equals and not ==

Change-Id: I6931034b5dbeb2fcb6b1791e5f3e6c37a86ba640
Signed-off-by: Alona Kaplan <alkap...@redhat.com>
---
M 
frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/networks/NetworkGeneralModel.java
1 file changed, 5 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/56/8956/1

diff --git 
a/frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/networks/NetworkGeneralModel.java
 
b/frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/networks/NetworkGeneralModel.java
index 089e688..399c1ab 100644
--- 
a/frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/networks/NetworkGeneralModel.java
+++ 
b/frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/networks/NetworkGeneralModel.java
@@ -75,7 +75,11 @@
 
     public void setMtu(Integer value)
     {
-        if (privateMtu != value)
+        if (privateMtu == null && value == null)
+        {
+            return;
+        }
+        if (privateMtu == null || !privateMtu.equals(value))
         {
             privateMtu = value;
             OnPropertyChanged(new PropertyChangedEventArgs("Mtu")); 
//$NON-NLS-1$


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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I6931034b5dbeb2fcb6b1791e5f3e6c37a86ba640
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Alona Kaplan <alkap...@redhat.com>
_______________________________________________
Engine-patches mailing list
Engine-patches@ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to