deps: Refactor dependencies (#3224)

* remove spring dep
move junit, logging, mockito under dep mgmt

* upgrade anti-corruption-layer deps

* async method invocation

* balking, bloc

* bridge to bytecode

* caching

* callback - cqrs

* component - health check

* hexagonal - metadata mapping

* rest of the patterns

* remove checkstyle, take spotless into use
This commit is contained in:
Ilkka Seppälä
2025-03-29 19:34:27 +02:00
committed by GitHub
parent 371439aeaa
commit 0ca162a55c
1863 changed files with 14408 additions and 17637 deletions
@@ -25,29 +25,24 @@
package com.iluwatar.sessionfacade;
import java.util.Map;
import lombok.Getter;
import lombok.extern.slf4j.Slf4j;
/**
* The type Cart service.
* Represents the cart entity, has add to cart and remove from cart methods
* The type Cart service. Represents the cart entity, has add to cart and remove from cart methods
*/
@Slf4j
public class CartService {
/**
* -- GETTER --
* Gets cart.
*/
@Getter
private final Map<Integer, Product> cart;
/** -- GETTER -- Gets cart. */
@Getter private final Map<Integer, Product> cart;
private final Map<Integer, Product> productCatalog;
/**
* Instantiates a new Cart service.
*
* @param cart the cart
* @param cart the cart
* @param productCatalog the product catalog
*/
public CartService(Map<Integer, Product> cart, Map<Integer, Product> productCatalog) {
@@ -83,5 +78,4 @@ public class CartService {
LOGGER.info("No product is found in cart with id {}", productId);
}
}
}