fix for Find Bugs findings on troubling issues: returning null when expected is boolean; adding 6 unit tests and fix 1 in the KVMFencer; comparing objects with == instead of equals()

Signed-off-by: Daan Hoogland <dhoogland@schubergphilis.com>
This commit is contained in:
wrodrigues 2014-02-27 08:53:13 +01:00 committed by Daan Hoogland
parent cefd4ce3be
commit 9045e41483
1 changed files with 1 additions and 1 deletions

View File

@ -884,7 +884,7 @@ public abstract class CitrixResourceBase implements ServerResource, HypervisorRe
Set<VIF> dom0Vifs = dom0.getVIFs(conn);
for (VIF vif : dom0Vifs) {
vif.getRecord(conn);
if (vif.getNetwork(conn).getUuid(conn) == nw.getUuid(conn)) {
if (vif.getNetwork(conn).getUuid(conn).equals(nw.getUuid(conn))) {
dom0vif = vif;
s_logger.debug("A VIF for dom0 has already been found - No need to create one");
}