From b291713f34377d0f09a0092d772ddbc84e6454e5 Mon Sep 17 00:00:00 2001 From: Pantakarn Kowdokrak Date: Sat, 23 Mar 2024 16:09:19 +0700 Subject: [PATCH] fix(spotless) : format file --- kbazaar/src/main/java/com/kampus/kbazaar/cart/Cart.java | 5 +---- kbazaar/src/main/java/com/kampus/kbazaar/cart/CartId.java | 2 +- .../main/java/com/kampus/kbazaar/cart/CartRepository.java | 4 +--- .../src/main/java/com/kampus/kbazaar/cart/CartService.java | 2 +- 4 files changed, 4 insertions(+), 9 deletions(-) diff --git a/kbazaar/src/main/java/com/kampus/kbazaar/cart/Cart.java b/kbazaar/src/main/java/com/kampus/kbazaar/cart/Cart.java index 32bf612..1d8833e 100644 --- a/kbazaar/src/main/java/com/kampus/kbazaar/cart/Cart.java +++ b/kbazaar/src/main/java/com/kampus/kbazaar/cart/Cart.java @@ -1,8 +1,5 @@ package com.kampus.kbazaar.cart; -import com.kampus.kbazaar.product.Product; -import lombok.Data; - import jakarta.persistence.EmbeddedId; import jakarta.persistence.Entity; import lombok.Getter; @@ -19,4 +16,4 @@ public Cart(CartId cartId, Integer quantity) { this.cartId = cartId; this.quantity = quantity; } -} \ No newline at end of file +} diff --git a/kbazaar/src/main/java/com/kampus/kbazaar/cart/CartId.java b/kbazaar/src/main/java/com/kampus/kbazaar/cart/CartId.java index 0b22c58..341d60a 100644 --- a/kbazaar/src/main/java/com/kampus/kbazaar/cart/CartId.java +++ b/kbazaar/src/main/java/com/kampus/kbazaar/cart/CartId.java @@ -14,4 +14,4 @@ public CartId(Long shopper_id, Long product_id) { this.shopper_id = shopper_id; this.product_id = product_id; } -} \ No newline at end of file +} diff --git a/kbazaar/src/main/java/com/kampus/kbazaar/cart/CartRepository.java b/kbazaar/src/main/java/com/kampus/kbazaar/cart/CartRepository.java index e01e9a8..7052e50 100644 --- a/kbazaar/src/main/java/com/kampus/kbazaar/cart/CartRepository.java +++ b/kbazaar/src/main/java/com/kampus/kbazaar/cart/CartRepository.java @@ -4,6 +4,4 @@ import org.springframework.stereotype.Repository; @Repository -public interface CartRepository extends JpaRepository { - -} +public interface CartRepository extends JpaRepository {} diff --git a/kbazaar/src/main/java/com/kampus/kbazaar/cart/CartService.java b/kbazaar/src/main/java/com/kampus/kbazaar/cart/CartService.java index a22d3fa..907dce0 100644 --- a/kbazaar/src/main/java/com/kampus/kbazaar/cart/CartService.java +++ b/kbazaar/src/main/java/com/kampus/kbazaar/cart/CartService.java @@ -13,4 +13,4 @@ public CartService(CartRepository cartRepository) { public String deleteCartItem(String username, String product_sku) { return "deleteL: " + username + product_sku; } -} \ No newline at end of file +}