refactoring #1012: Format specifiers should be used instead of string concatenation. (#2715)

* refactoring #1012: Format specifiers should be used instead of string concatenation.

* refactoring #1012: Format specifiers should be used instead of string concatenation.

* refactoring #1012: Remove isInfoEnabled check
This commit is contained in:
kongleong86
2023-12-02 12:25:00 +00:00
committed by GitHub
parent a82966f202
commit 301317533e
9 changed files with 19 additions and 19 deletions
@@ -34,7 +34,7 @@ public class ReceiptDto implements ReceiptViewModel {
private static final Logger LOGGER = LoggerFactory.getLogger(ReceiptDto.class);
private Double price;
private final Double price;
public ReceiptDto(Double price) {
this.price = price;
@@ -46,6 +46,6 @@ public class ReceiptDto implements ReceiptViewModel {
@Override
public void show() {
LOGGER.info("Receipt: " + price + " paid");
LOGGER.info(String.format("Receipt: %s paid", price));
}
}