mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-02 11:52:28 +01:00
CLOUDSTACK-7706: Coverity defects
Signed-off-by: Santhosh Edukulla <santhosh.edukulla@gmail.com>
This commit is contained in:
parent
5759857ffc
commit
edf1047a20
@ -167,15 +167,15 @@ public class CreateServiceOfferingCmd extends BaseCmd {
|
||||
}
|
||||
|
||||
public Boolean getOfferHa() {
|
||||
return offerHa == null ? false : offerHa;
|
||||
return offerHa == null ? Boolean.FALSE : offerHa;
|
||||
}
|
||||
|
||||
public Boolean GetLimitCpuUse() {
|
||||
return limitCpuUse == null ? false : limitCpuUse;
|
||||
return limitCpuUse == null ? Boolean.FALSE : limitCpuUse;
|
||||
}
|
||||
|
||||
public Boolean getVolatileVm() {
|
||||
return isVolatile == null ? false : isVolatile;
|
||||
return isVolatile == null ? Boolean.FALSE : isVolatile;
|
||||
}
|
||||
|
||||
public String getStorageType() {
|
||||
|
||||
@ -227,7 +227,7 @@ public class RegisterTemplateCmd extends BaseCmd {
|
||||
}
|
||||
|
||||
public Boolean isDynamicallyScalable() {
|
||||
return isDynamicallyScalable == null ? false : isDynamicallyScalable;
|
||||
return isDynamicallyScalable == null ? Boolean.FALSE : isDynamicallyScalable;
|
||||
}
|
||||
|
||||
public Boolean isRoutingType() {
|
||||
|
||||
@ -43,9 +43,6 @@ public class ListCfgCmdTest extends TestCase {
|
||||
private ManagementService mgr;
|
||||
private ResponseGenerator responseGenerator;
|
||||
|
||||
@Rule
|
||||
public ExpectedException expectedException = ExpectedException.none();
|
||||
|
||||
@Override
|
||||
@Before
|
||||
public void setUp() {
|
||||
|
||||
@ -40,9 +40,6 @@ public class UpdateCfgCmdTest extends TestCase {
|
||||
private ConfigurationService configService;
|
||||
private ResponseGenerator responseGenerator;
|
||||
|
||||
@Rule
|
||||
public ExpectedException expectedException = ExpectedException.none();
|
||||
|
||||
@Override
|
||||
@Before
|
||||
public void setUp() {
|
||||
|
||||
@ -1950,10 +1950,6 @@ public class ConfigurationManagerImpl extends ManagerBase implements Configurati
|
||||
|
||||
DomainVO domainVO = null;
|
||||
|
||||
if (userId == null) {
|
||||
userId = User.UID_SYSTEM;
|
||||
}
|
||||
|
||||
if (domainId != null) {
|
||||
domainVO = _domainDao.findById(domainId);
|
||||
}
|
||||
|
||||
@ -1696,9 +1696,6 @@ public class ManagementServerImpl extends ManagerBase implements ManagementServe
|
||||
|
||||
if (scope != null && !scope.isEmpty()) {
|
||||
// getting the list of parameters at requested scope
|
||||
if (id == null) {
|
||||
throw new InvalidParameterValueException("Invalid id null, id is needed corresponding to the scope");
|
||||
}
|
||||
sc.addAnd("scope", SearchCriteria.Op.EQ, scope);
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user