From 0389a1bada9d7efd7e653f154b20ac37fcb5f52d Mon Sep 17 00:00:00 2001 From: Liam Date: Tue, 23 Apr 2024 16:33:17 +0100 Subject: [PATCH] cleanup --- pom.xml | 6 ------ src/main/java/cc/fascinated/backend/Main.java | 6 ------ .../backend/exception/impl/BadRequestException.java | 12 ------------ 3 files changed, 24 deletions(-) delete mode 100644 src/main/java/cc/fascinated/backend/exception/impl/BadRequestException.java diff --git a/pom.xml b/pom.xml index a46c7f2..82819e2 100644 --- a/pom.xml +++ b/pom.xml @@ -72,12 +72,6 @@ 3.14.0 compile - - com.google.code.gson - gson - 2.10.1 - compile - diff --git a/src/main/java/cc/fascinated/backend/Main.java b/src/main/java/cc/fascinated/backend/Main.java index d27afe3..1842718 100644 --- a/src/main/java/cc/fascinated/backend/Main.java +++ b/src/main/java/cc/fascinated/backend/Main.java @@ -1,7 +1,5 @@ package cc.fascinated.backend; -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; import lombok.SneakyThrows; import lombok.extern.log4j.Log4j2; import org.springframework.boot.SpringApplication; @@ -15,10 +13,6 @@ import java.util.Objects; @Log4j2(topic = "Main") @SpringBootApplication public class Main { - public static final Gson GSON = new GsonBuilder() - .setDateFormat("MM-dd-yyyy HH:mm:ss") - .create(); - @SneakyThrows public static void main(String[] args) { File config = new File("application.yml"); diff --git a/src/main/java/cc/fascinated/backend/exception/impl/BadRequestException.java b/src/main/java/cc/fascinated/backend/exception/impl/BadRequestException.java deleted file mode 100644 index c6b12a3..0000000 --- a/src/main/java/cc/fascinated/backend/exception/impl/BadRequestException.java +++ /dev/null @@ -1,12 +0,0 @@ -package cc.fascinated.backend.exception.impl; - -import org.springframework.http.HttpStatus; -import org.springframework.web.bind.annotation.ResponseStatus; - -@ResponseStatus(HttpStatus.BAD_REQUEST) -public class BadRequestException extends RuntimeException { - - public BadRequestException(String message) { - super(message); - } -}