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