Skip to content

Commit 1f75bb9

Browse files
committed
Apply reviews
1 parent e1e8114 commit 1f75bb9

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

framework/quota/src/main/java/org/apache/cloudstack/quota/dao/QuotaBalanceDao.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ public interface QuotaBalanceDao extends GenericDao<QuotaBalanceVO, Long> {
3535
QuotaBalanceVO findLaterBalanceEntry(Long accountId, Long domainId, Date afterThis);
3636

3737
List<QuotaBalanceVO> listQuotaBalances(Long accountId, Long domainId, Date startDate, Date endDate);
38+
3839
BigDecimal getLastQuotaBalance(Long accountId, Long domainId);
3940

4041
}

server/src/main/java/com/cloud/user/AccountManagerImpl.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3940,10 +3940,10 @@ public Long finalizeAccountId(Long accountId, String accountName, Long domainId,
39403940
protected long getActiveProjectAccountByProjectId(long projectId) {
39413941
Project project = _projectMgr.getProject(projectId);
39423942
if (project == null) {
3943-
throw new ServerApiException(ApiErrorCode.PARAM_ERROR, String.format("Unable to find project with the specified ID.", projectId));
3943+
throw new ServerApiException(ApiErrorCode.PARAM_ERROR, "Unable to find project with the specified ID.");
39443944
}
39453945
if (project.getState() != Project.State.Active) {
3946-
throw new ServerApiException(ApiErrorCode.PARAM_ERROR, String.format("Project is not active.", projectId));
3946+
throw new ServerApiException(ApiErrorCode.PARAM_ERROR, "Project is not active.");
39473947
}
39483948
return project.getProjectAccountId();
39493949
}

0 commit comments

Comments
 (0)