ofri masad has posted comments on this change.

Change subject: core: removing org.apache.commons.lang dependency (5/15)
......................................................................


Patch Set 2: (1 inline comment)

....................................................
File 
backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/VdsSelector.java
Line 423:                     if (!networkRequiredOnVds(vmIf, networksByName, 
onlyRequiredNetworks)
Line 424:                             || (vmIf.getNetworkName() == 
vdsIf.getNetworkName()
Line 425:                                     || (vmIf.getNetworkName() == null 
&& vdsIf.getNetworkName() == null)
Line 426:                                     || (vmIf.getNetworkName() != null 
&& vmIf.getNetworkName()
Line 427:                                     
.equals(vdsIf.getNetworkName())))) {
line 424 is redundant. please use equals() for strings. see StringUtils 
implementation:

return str1 == null ? str2 == null : str1.equals(str2);
Line 428:                         found = true;
Line 429:                         break;
Line 430:                     }
Line 431:                 }


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

Gerrit-MessageType: comment
Gerrit-Change-Id: If5ae48b1cc36f466e43fec1e8f66aa96e6f5fb5f
Gerrit-PatchSet: 2
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Gilad Chaplik <gchap...@redhat.com>
Gerrit-Reviewer: Doron Fediuck <dfedi...@redhat.com>
Gerrit-Reviewer: Gilad Chaplik <gchap...@redhat.com>
Gerrit-Reviewer: Omer Frenkel <ofren...@redhat.com>
Gerrit-Reviewer: ofri masad <oma...@redhat.com>
_______________________________________________
Engine-patches mailing list
Engine-patches@ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to