Maor Lipchuk has posted comments on this change.

Change subject: core: cleanup RemoveStoragePoolCommand
......................................................................


Patch Set 3: (3 inline comments)

....................................................
File 
backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/storage/RemoveStoragePoolCommand.java
Line 308:         if (returnValue) {
Line 309:             if (getStoragePool().getstatus() != 
StoragePoolStatus.Uninitialized && !getParameters().getForceDelete()) {
Line 310:                 returnValue = InitializeVds();
Line 311:             }
Line 312:             final List<storage_domains> poolDomains = 
DbFacade.getInstance().getStorageDomainDAO().getAllForStoragePool(
1. What was the reason to use final here?

2. Consider call getDbFacade instead DbFacade.getInstance()
Line 313:                     getStoragePool().getId());
Line 314:             if (returnValue) {
Line 315:                 final List<storage_domains> domainsList = 
getActiveOrLockedDomainList(poolDomains);
Line 316: 


Line 311:             }
Line 312:             final List<storage_domains> poolDomains = 
DbFacade.getInstance().getStorageDomainDAO().getAllForStoragePool(
Line 313:                     getStoragePool().getId());
Line 314:             if (returnValue) {
Line 315:                 final List<storage_domains> domainsList = 
getActiveOrLockedDomainList(poolDomains);
Why use final here also?
Line 316: 
Line 317:                 if (!domainsList.isEmpty()) {
Line 318:                     returnValue = false;
Line 319:                     
addCanDoActionMessage(VdcBllMessages.ERROR_CANNOT_REMOVE_POOL_WITH_ACTIVE_DOMAINS);


....................................................
Commit Message
Line 5: CommitDate: 2012-08-28 09:06:28 +0200
Line 6: 
Line 7: core: cleanup RemoveStoragePoolCommand
Line 8: 
Line 9: - cleared up a strange reference duplication in canDoAction
I think cleared should be replaced with cleaned, no?
Line 10: 
Line 11: Change-Id: I687c84b2e62873c70691071d4b59819086aa42b8


--
To view, visit http://gerrit.ovirt.org/7500
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: comment
Gerrit-Change-Id: I687c84b2e62873c70691071d4b59819086aa42b8
Gerrit-PatchSet: 3
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Laszlo Hornyak <[email protected]>
Gerrit-Reviewer: Allon Mureinik <[email protected]>
Gerrit-Reviewer: Laszlo Hornyak <[email protected]>
Gerrit-Reviewer: Maor Lipchuk <[email protected]>
Gerrit-Reviewer: Yair Zaslavsky <[email protected]>
Gerrit-Reviewer: oVirt Jenkins CI Server
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to