Skip to content

Commit 2dc5715

Browse files
Apply suggestions from code review
Co-authored-by: Fabricio Duarte <[email protected]>
1 parent a6993ef commit 2dc5715

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

framework/quota/src/main/java/org/apache/cloudstack/quota/QuotaManagerImpl.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,7 @@ public boolean findConfigurationValue(AccountVO accountVO, ConfigKey<Boolean> ke
364364
logger.trace("Searching configuration [{}] of account [{}] in its settings.", key.key(), accountVO);
365365
AccountDetailVO accountDetail = accountDetailsDao.findDetail(accountVO.getAccountId(), key.key());
366366
if (accountDetail != null) {
367-
result = Boolean.TRUE.equals(Boolean.valueOf(accountDetail.getValue()));
367+
result = Boolean.parseBoolean(accountDetail.getValue());
368368
logger.trace("Using value [{}] found in account [{}] settings to configuration [{}].", result, accountVO, key.key());
369369
return result;
370370
}
@@ -373,7 +373,7 @@ public boolean findConfigurationValue(AccountVO accountVO, ConfigKey<Boolean> ke
373373
logger.trace("Searching for configuration [{}] of account [{}] in its domain [{}] settings.", key.key(), accountVO, accountVO.getDomainId());
374374
DomainDetailVO domainDetail = domainDetailsDao.findDetail(accountVO.getDomainId(), key.key());
375375
if (domainDetail != null) {
376-
result = Boolean.TRUE.equals(Boolean.valueOf(domainDetail.getValue()));
376+
result = Boolean.parseBoolean(domainDetail.getValue());
377377
logger.trace("Using value [{}] found in domain [{}] settings to configuration [{}].", result, accountVO.getDomainId(), key.key());
378378
return result;
379379
}

0 commit comments

Comments
 (0)