Change in ovirt-engine[master]: core: use Collections#EMPTY_MAP instead of new map
ofrenkel at redhat.com
ofrenkel at redhat.com
Mon Jul 15 06:18:03 UTC 2013
Omer Frenkel has submitted this change and it was merged.
Change subject: core: use Collections#EMPTY_MAP instead of new map
......................................................................
core: use Collections#EMPTY_MAP instead of new map
In VmHandler#findStorageDomainForMemory(Guid, long) we create everytime
a new map and pass it on. This new map is empty map and no one adds
anything to it, so we can use the singleton map Collections#EMPTY_MAP
instead.
Change-Id: I4053e06f17827d8afbdc48ad006897c029426384
Signed-off-by: Arik Hadas <ahadas at redhat.com>
---
M backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/VmHandler.java
1 file changed, 2 insertions(+), 2 deletions(-)
Approvals:
Omer Frenkel: Verified; Looks good to me, approved
--
To view, visit http://gerrit.ovirt.org/16823
To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I4053e06f17827d8afbdc48ad006897c029426384
Gerrit-PatchSet: 3
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Arik Hadas <ahadas at redhat.com>
Gerrit-Reviewer: Arik Hadas <ahadas at redhat.com>
Gerrit-Reviewer: Omer Frenkel <ofrenkel at redhat.com>
Gerrit-Reviewer: oVirt Jenkins CI Server
More information about the Engine-commits
mailing list