Skip to content

Commit a7bb9c7

Browse files
committed
spotlessApply/fix
1 parent db47616 commit a7bb9c7

File tree

1 file changed

+2
-2
lines changed
  • lesson_14/exceptions/exceptions_app/src/main/java/com/codedifferently/lesson14/ecommerce

1 file changed

+2
-2
lines changed

lesson_14/exceptions/exceptions_app/src/main/java/com/codedifferently/lesson14/ecommerce/EcommerceSystem.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public void addProduct(String productId, String name) {
2020
public String placeOrder(String productId, int quantity) throws ProductNotFoundException {
2121
Product product = products.get(productId);
2222
if (product == null) {
23-
throw new ProductNotFoundException("Product with ID 1 Not found ");
23+
throw new ProductNotFoundException("Product with ID 1 not found ");
2424
}
2525
String orderId = UUID.randomUUID().toString();
2626
orders.put(orderId, new Order(orderId, product, quantity));
@@ -39,7 +39,7 @@ public void cancelOrder(String orderId) throws OrderNotFoundException {
3939

4040
public String checkOrderStatus(String orderId) throws OrderNotFoundException {
4141
Order order = orders.get(orderId);
42-
if (order == null) throw new OrderNotFoundException("Order with ID 1 Not found");
42+
if (order == null) throw new OrderNotFoundException("Order with ID 1 not found");
4343
return "Order ID: "
4444
+ orderId
4545
+ ", Product: "

0 commit comments

Comments
 (0)