-
Notifications
You must be signed in to change notification settings - Fork 0
Exercise Tutorial 4: Implement a New Feature #12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
| CANCELLED("CANCELLED"); | ||
|
|
||
| private final String value; | ||
| private OrderStatus (String value) { |
Check warning
Code scanning / PMD
Unnecessary modifier 'public' on method 'getAllPayments': the method is declared in an interface type
| } | ||
|
|
||
| public static boolean contains(String param) { | ||
| for (OrderStatus orderStatus : OrderStatus.values()) { |
Check warning
Code scanning / PMD
Unnecessary qualifier 'PaymentStatus': 'values' is already in scope
| import java.util.List; | ||
|
|
||
| public interface OrderService { | ||
| public Order createOrder (Order order); |
Check warning
Code scanning / PMD
Unnecessary modifier 'public' on method 'getAllPayments': the method is declared in an interface type
|
|
||
| public interface OrderService { | ||
| public Order createOrder (Order order); | ||
| public Order updateStatus(String orderId, String status); |
Check warning
Code scanning / PMD
Unnecessary modifier 'public' on method 'getAllPayments': the method is declared in an interface type
| public interface OrderService { | ||
| public Order createOrder (Order order); | ||
| public Order updateStatus(String orderId, String status); | ||
| public Order findById(String orderId); |
Check warning
Code scanning / PMD
Unnecessary modifier 'public' on method 'getAllPayments': the method is declared in an interface type
| import java.util.Map; | ||
|
|
||
| public interface PaymentService { | ||
| public Payment addPayment (String id, Order order, String method, Map<String, String> paymentData); |
Check warning
Code scanning / PMD
Unnecessary modifier 'public' on method 'getAllPayments': the method is declared in an interface type
|
|
||
| public interface PaymentService { | ||
| public Payment addPayment (String id, Order order, String method, Map<String, String> paymentData); | ||
| public Payment setStatus(Payment payment, String status); |
Check warning
Code scanning / PMD
Unnecessary modifier 'public' on method 'getAllPayments': the method is declared in an interface type
| public interface PaymentService { | ||
| public Payment addPayment (String id, Order order, String method, Map<String, String> paymentData); | ||
| public Payment setStatus(Payment payment, String status); | ||
| public Payment getPayment(String paymentId); |
Check warning
Code scanning / PMD
Unnecessary modifier 'public' on method 'getAllPayments': the method is declared in an interface type
| public Payment addPayment (String id, Order order, String method, Map<String, String> paymentData); | ||
| public Payment setStatus(Payment payment, String status); | ||
| public Payment getPayment(String paymentId); | ||
| public List<Payment> getAllPayments(); |
Check warning
Code scanning / PMD
Unnecessary modifier 'public' on method 'getAllPayments': the method is declared in an interface type
| @@ -0,0 +1,56 @@ | |||
| package id.ac.ui.cs.advprog.eshop.service; | |||
|
|
|||
| import id.ac.ui.cs.advprog.eshop.enums.PaymentStatus; | |||
Check warning
Code scanning / PMD
Unused import 'id.ac.ui.cs.advprog.eshop.enums.PaymentStatus'
No description provided.