Checkstyle adjustments

This commit is contained in:
Shan Ruhhammer
2023-06-25 03:16:43 +02:00
parent cba6e46de7
commit 7c00e25e56

View File

@@ -5,7 +5,6 @@ import java.util.List;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory; import org.slf4j.LoggerFactory;
import de.rwu.easydrop.Main;
import de.rwu.easydrop.exception.InvalidCatalogueException; import de.rwu.easydrop.exception.InvalidCatalogueException;
import de.rwu.easydrop.model.Product; import de.rwu.easydrop.model.Product;
import de.rwu.easydrop.model.ProductCatalogue; import de.rwu.easydrop.model.ProductCatalogue;
@@ -42,9 +41,9 @@ public final class OrderManager {
for (ProductCatalogue pCat : pCats) { for (ProductCatalogue pCat : pCats) {
ProductPair pair = getHighestMarginProducts(pCat); ProductPair pair = getHighestMarginProducts(pCat);
// TODO: create actual orders/transactions, remove logger // #12: Create actual orders/transactions, remove logger
double margin = pair.getProduct2().getCurrentPrice() - double margin = pair.getProduct2().getCurrentPrice()
pair.getProduct1().getCurrentPrice(); - pair.getProduct1().getCurrentPrice();
String marginFormatted = FormattingUtil.formatEuro(margin); String marginFormatted = FormattingUtil.formatEuro(margin);
LOGGER.info("{}: Margin {} ({} to {})", LOGGER.info("{}: Margin {} ({} to {})",
pCat.getProductName(), pCat.getProductName(),