File tree Expand file tree Collapse file tree
application/src/main/java/eu/happycoders/shop/application/service/cart Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44import eu .happycoders .shop .application .port .out .persistence .CartRepository ;
55import eu .happycoders .shop .model .cart .Cart ;
66import eu .happycoders .shop .model .customer .CustomerId ;
7+
8+ import java .util .List ;
79import java .util .Objects ;
810
911/**
@@ -23,6 +25,10 @@ public GetCartService(CartRepository cartRepository) {
2325 public Cart getCart (CustomerId customerIdVeryLong ) {
2426 Objects .requireNonNull (customerIdVeryLong , "'customerId' must not be null" );
2527
28+ List <String > foo = List .of ("foo" , "bar" );
29+ List <String > strings = List .copyOf (foo );
30+ IO .println ("strings = " + strings );
31+
2632 return cartRepository
2733 .findByCustomerId (customerIdVeryLong )
2834 .orElseGet (() -> new Cart (customerIdVeryLong ));
You can’t perform that action at this time.
0 commit comments