Idan Shaby has uploaded a new change for review. Change subject: core: Renamed the Method getStorageDomainIdForPoolByType ......................................................................
core: Renamed the Method getStorageDomainIdForPoolByType The method's parameters types are clear enough, so there's no need to include them also in the method's name. Change-Id: Ifea93a14062b5d0483c8492b82444c34097ff71d Signed-off-by: Idan Shaby <[email protected]> --- M backend/manager/modules/dal/src/main/java/org/ovirt/engine/core/dao/StorageDomainDAODbFacadeImpl.java 1 file changed, 8 insertions(+), 9 deletions(-) git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/30/34030/1 diff --git a/backend/manager/modules/dal/src/main/java/org/ovirt/engine/core/dao/StorageDomainDAODbFacadeImpl.java b/backend/manager/modules/dal/src/main/java/org/ovirt/engine/core/dao/StorageDomainDAODbFacadeImpl.java index aa62186..cab1c91 100644 --- a/backend/manager/modules/dal/src/main/java/org/ovirt/engine/core/dao/StorageDomainDAODbFacadeImpl.java +++ b/backend/manager/modules/dal/src/main/java/org/ovirt/engine/core/dao/StorageDomainDAODbFacadeImpl.java @@ -23,7 +23,7 @@ @Override public Guid getMasterStorageDomainIdForPool(Guid pool) { - return getStorageDomainIdForPoolByType(pool, StorageDomainType.Master); + return getStorageDomainId(pool, StorageDomainType.Master); } @Override @@ -37,7 +37,7 @@ @Override public Guid getIsoStorageDomainIdForPool(Guid pool) { - return getStorageDomainIdForPoolByType(pool, StorageDomainType.ISO); + return getStorageDomainId(pool, StorageDomainType.ISO); } @Override @@ -213,15 +213,14 @@ } /** - * Gets the storage domain id of the given type for the given storage pool - * - * @param pool - * @param type - * @return + * Gets the storage domain id of the given type for the given storage pool id. + * @param poolId The storage pool id, + * @param type The Storage domain type. + * @return the storage domain id of the given type for the given storage pool id. */ - private Guid getStorageDomainIdForPoolByType(Guid pool, StorageDomainType type) { + private Guid getStorageDomainId(Guid poolId, StorageDomainType type) { Guid returnValue = Guid.Empty; - StorageDomain domain = getStorageDomain(pool, type); + StorageDomain domain = getStorageDomain(poolId, type); if (domain != null) { returnValue = domain.getId(); } -- To view, visit http://gerrit.ovirt.org/34030 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Ifea93a14062b5d0483c8492b82444c34097ff71d Gerrit-PatchSet: 1 Gerrit-Project: ovirt-engine Gerrit-Branch: master Gerrit-Owner: Idan Shaby <[email protected]> _______________________________________________ Engine-patches mailing list [email protected] http://lists.ovirt.org/mailman/listinfo/engine-patches
