Skip to content

Commit

Permalink
[chore] import 문 옵티마제이션
Browse files Browse the repository at this point in the history
  • Loading branch information
JeonHaeseung committed Jul 10, 2024
1 parent 40e6a07 commit f5ed237
Show file tree
Hide file tree
Showing 8 changed files with 0 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.Optional;

@Service
@RequiredArgsConstructor
@Transactional(readOnly = true)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package Ness.Backend.domain.auth.oAuth;

import Ness.Backend.global.error.ErrorCode;
import Ness.Backend.global.error.exception.OAuthVerificationException;
import jakarta.servlet.ServletException;
import jakarta.servlet.http.HttpServletRequest;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
import org.springframework.beans.factory.annotation.Value;
import org.springframework.security.core.Authentication;
import org.springframework.security.web.authentication.SavedRequestAwareAuthenticationSuccessHandler;
import org.springframework.stereotype.Component;
import org.springframework.web.util.UriComponentsBuilder;

import java.io.IOException;
Expand Down
2 changes: 0 additions & 2 deletions src/main/java/Ness/Backend/domain/main/MainService.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,12 @@
import Ness.Backend.domain.report.dto.response.PostFastApiAiRecommendActivityDto;
import Ness.Backend.domain.schedule.dto.response.GetScheduleDto;
import Ness.Backend.domain.todo.TodoService;
import Ness.Backend.domain.todo.dto.response.PostFastApiRecommendDto;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
import java.util.concurrent.CompletableFuture;
import java.util.concurrent.ExecutionException;

@Service
@RequiredArgsConstructor
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@Builder
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;

import java.time.ZonedDateTime;
import java.util.List;

public interface ReportMemoryRepository extends JpaRepository<ReportMemory, Long>{
Expand Down
1 change: 0 additions & 1 deletion src/main/java/Ness/Backend/domain/todo/TodoService.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
import Ness.Backend.domain.schedule.ScheduleRepository;
import Ness.Backend.domain.schedule.ScheduleService;
import Ness.Backend.domain.schedule.dto.response.GetScheduleDto;
import Ness.Backend.domain.schedule.dto.response.GetScheduleListDto;
import Ness.Backend.domain.schedule.entity.Schedule;
import Ness.Backend.domain.todo.dto.request.PostFastApiTodoCategoryDto;
import Ness.Backend.domain.todo.dto.request.PostFastApiTodoDto;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,16 @@

import Ness.Backend.global.error.exception.BaseException;
import Ness.Backend.infra.discord.DiscordAlertSender;
import Ness.Backend.infra.discord.DiscordMessageGenerator;
import jakarta.servlet.http.HttpServletRequest;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.http.ResponseEntity;
import org.springframework.web.HttpRequestMethodNotSupportedException;
import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.servlet.resource.NoResourceFoundException;
import org.springframework.web.util.ContentCachingRequestWrapper;

import static org.springframework.http.HttpStatus.BAD_REQUEST;
import static org.springframework.http.HttpStatus.INTERNAL_SERVER_ERROR;

@ControllerAdvice
Expand Down

0 comments on commit f5ed237

Please sign in to comment.