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.