Martin Peřina has posted comments on this change.

Change subject: core: backup awareness refactoring
......................................................................


Patch Set 1:

(1 comment)

https://gerrit.ovirt.org/#/c/40389/1/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/businessentities/EngineBackupLogId.java
File 
backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/businessentities/EngineBackupLogId.java:

Line 42:         if (!(obj instanceof EngineBackupLogId)) {
Line 43:             return false;
Line 44:         }
Line 45:         EngineBackupLogId other = (EngineBackupLogId)obj;
Line 46:         return (scope.equals(other.getScope()) && 
doneAt.equals(other.getDoneAt()));
> what is the advantage here ?
To prevent NPE when scope and/or doneAt in current instance is null
Line 47:     }
Line 48: 
Line 49: 
Line 50: }


-- 
To view, visit https://gerrit.ovirt.org/40389
To unsubscribe, visit https://gerrit.ovirt.org/settings

Gerrit-MessageType: comment
Gerrit-Change-Id: I82c4a5372a9108d8c4d5960112f27a0b94f3b654
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Eli Mesika <emes...@redhat.com>
Gerrit-Reviewer: Eli Mesika <emes...@redhat.com>
Gerrit-Reviewer: Martin Peřina <mper...@redhat.com>
Gerrit-Reviewer: Moti Asayag <masa...@redhat.com>
Gerrit-Reviewer: Oved Ourfali <oourf...@redhat.com>
Gerrit-Reviewer: Yedidyah Bar David <d...@redhat.com>
Gerrit-Reviewer: Yevgeny Zaspitsky <yzasp...@redhat.com>
Gerrit-Reviewer: automat...@ovirt.org
Gerrit-Reviewer: oVirt Jenkins CI Server
Gerrit-HasComments: Yes
_______________________________________________
Engine-patches mailing list
Engine-patches@ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to