Lior Vernia has posted comments on this change. Change subject: core: Create PairQueryable ID without UUID serialization ......................................................................
Patch Set 1: (1 comment) http://gerrit.ovirt.org/#/c/35198/1/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/utils/PairQueryable.java File backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/utils/PairQueryable.java: Line 18: } Line 19: Line 20: private Pair<T, K> getPair() { Line 21: if (pair == null) { Line 22: pair = new Pair<>(null, null); > Can't you do: Note that while PairQueryableId is indeed an instanceof Pair, the pair member would not normally be of type PairQueryableId; pair would hold the actual members of the PairQueryable, while instances of PairQueryableId represent pairs of IDs (of the said members). Line 23: } Line 24: return pair; Line 25: } Line 26: -- To view, visit http://gerrit.ovirt.org/35198 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: comment Gerrit-Change-Id: Ibf0776567c5ef7f20830c70617dc69806cce3a6b Gerrit-PatchSet: 1 Gerrit-Project: ovirt-engine Gerrit-Branch: master Gerrit-Owner: Lior Vernia <[email protected]> Gerrit-Reviewer: Alexander Wels <[email protected]> Gerrit-Reviewer: Greg Sheremeta <[email protected]> Gerrit-Reviewer: Lior Vernia <[email protected]> Gerrit-Reviewer: Moti Asayag <[email protected]> Gerrit-Reviewer: Oved Ourfali <[email protected]> Gerrit-Reviewer: Roy Golan <[email protected]> Gerrit-Reviewer: Vojtech Szocs <[email protected]> Gerrit-Reviewer: Yair Zaslavsky <[email protected]> Gerrit-Reviewer: [email protected] Gerrit-Reviewer: oVirt Jenkins CI Server Gerrit-HasComments: Yes _______________________________________________ Engine-patches mailing list [email protected] http://lists.ovirt.org/mailman/listinfo/engine-patches
