Skip to content

Commit 4afa255

Browse files
author
AmiyahJo
committed
fix: gradlew spotless to fix violations
1 parent 8f6142f commit 4afa255

File tree

3 files changed

+16
-16
lines changed

3 files changed

+16
-16
lines changed

lesson_14/exceptions/exceptions_app/src/main/java/com/codedifferently/lesson14/Lesson14.java

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,16 @@ public class Lesson14 {
88

99
public static void main(String[] args) {
1010
System.out.println("Hello world");
11-
// String orderId = null;
12-
// try {
13-
// orderId = ecommerceSystem.placeOrder("1", 1);
14-
// } catch (ProductNotFoundException e) {
15-
// System.out.println("Product with ID " + "1" + " not found.");
16-
// } catch (OrderNotFoundException e){
17-
// System.out.println("Order with ID " + orderId + " not found.");
18-
// }
11+
// String orderId = null;
12+
// try {
13+
// orderId = ecommerceSystem.placeOrder("1", 1);
14+
// } catch (ProductNotFoundException e) {
15+
// System.out.println("Product with ID " + "1" + " not found.");
16+
// } catch (OrderNotFoundException e){
17+
// System.out.println("Order with ID " + orderId + " not found.");
18+
// }
1919
}
2020
}
2121

22-
//ProductNotFoundException <- for product does not exist
23-
//OrderNotFoundException <- for both order does not exist and order cancelled
22+
// ProductNotFoundException <- for product does not exist
23+
// OrderNotFoundException <- for both order does not exist and order cancelled

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
package com.codedifferently.lesson14.ecommerce;
77

88
class OrderNotFoundException extends Exception {
9-
public OrderNotFoundException(String message) {
10-
super(message);
11-
}
9+
public OrderNotFoundException(String message) {
10+
super(message);
11+
}
1212
}

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
package com.codedifferently.lesson14.ecommerce;
77

88
class ProductNotFoundException extends Exception {
9-
public ProductNotFoundException(String message) {
10-
super(message);
11-
}
9+
public ProductNotFoundException(String message) {
10+
super(message);
11+
}
1212
}

0 commit comments

Comments
 (0)