Skip to content

Commit b0c87c0

Browse files
committed
Static code analysis
1 parent 14774fc commit b0c87c0

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/main/java/it/eng/dome/billing/proxy/controller/BillingController.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -233,10 +233,10 @@ private String getApplyTaxesRequestDTOtoJson(String appliedCustomerBillingRateLi
233233
* @param product The Product that must be billed
234234
* @return A list of BillingRequestDTO
235235
*/
236-
private List<BillingRequestDTO> getProductPricesAntTimePeriodGroupsForNow(Product product) throws Throwable{
236+
private List<BillingRequestDTO> getProductPricesAntTimePeriodGroupsForNow(Product product) throws Throwable {
237237
try {
238238

239-
List<BillingRequestDTO> brDTOList=new ArrayList<BillingRequestDTO>();
239+
List<BillingRequestDTO> brDTOList = new ArrayList<BillingRequestDTO>();
240240

241241
List<ProductPrice> pprices = product.getProductPrice();
242242
logger.debug("Number of ProductPrices found: {} ", pprices.size());
@@ -308,8 +308,7 @@ private List<BillingRequestDTO> getProductPricesAntTimePeriodGroupsForNow(Produc
308308
return brDTOList;
309309

310310
} catch (Exception e) {
311-
// TODO Auto-generated catch block
312-
e.printStackTrace();
311+
logger.error("Error: {}", e.getMessage());
313312
return null;
314313
}
315314

0 commit comments

Comments
 (0)