Skip to content

Commit

Permalink
fix: Spotless 적용 (#246)
Browse files Browse the repository at this point in the history
  • Loading branch information
OziinG committed Dec 5, 2024
1 parent 59927ac commit a519d43
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 15 deletions.
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
package org.ioteatime.meonghanyangserver.batch.job.image;

import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;
import lombok.extern.slf4j.Slf4j;
import org.springframework.batch.core.BatchStatus;
import org.springframework.batch.core.JobExecution;
import org.springframework.batch.core.JobExecutionListener;
import org.springframework.stereotype.Component;

import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;

@Slf4j
@Component
public class ImageDeleteJobExecutionListener implements JobExecutionListener {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
import lombok.extern.slf4j.Slf4j;
import org.ioteatime.meonghanyangserver.clients.s3.S3Client;
import org.ioteatime.meonghanyangserver.image.domain.ImageEntity;
import org.ioteatime.meonghanyangserver.video.domain.VideoEntity;
import org.springframework.batch.core.configuration.annotation.StepScope;
import org.springframework.batch.item.ItemProcessor;
import org.springframework.stereotype.Component;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,13 @@
import jakarta.persistence.EntityManager;
import jakarta.persistence.PersistenceContext;
import jakarta.persistence.TypedQuery;
import java.time.LocalDateTime;
import java.util.List;
import org.ioteatime.meonghanyangserver.image.domain.ImageEntity;
import org.ioteatime.meonghanyangserver.video.domain.VideoEntity;
import org.springframework.batch.core.configuration.annotation.StepScope;
import org.springframework.batch.item.ItemReader;
import org.springframework.stereotype.Component;

import java.time.LocalDateTime;
import java.util.List;

@Component
@StepScope
public class ImageItemReader implements ItemReader<ImageEntity> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,14 @@

import jakarta.persistence.EntityManager;
import jakarta.persistence.PersistenceContext;
import java.util.List;
import lombok.RequiredArgsConstructor;
import org.ioteatime.meonghanyangserver.image.domain.ImageEntity;
import org.springframework.batch.core.configuration.annotation.StepScope;
import org.springframework.batch.item.Chunk;
import org.springframework.batch.item.ItemWriter;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
@StepScope
@RequiredArgsConstructor
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package org.ioteatime.meonghanyangserver.batch.job.image;

import lombok.RequiredArgsConstructor;

import org.ioteatime.meonghanyangserver.image.domain.ImageEntity;
import org.springframework.batch.core.Job;
import org.springframework.batch.core.Step;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,11 @@ public void runJob() {
oldImageDeleteJobConfig.oldImageDeleteJob(jobRepository), jobParameters);

} catch (JobExecutionAlreadyRunningException
| JobInstanceAlreadyCompleteException
| JobParametersInvalidException
| org.springframework.batch.core.repository.JobRestartException e) {
| JobInstanceAlreadyCompleteException
| JobParametersInvalidException
| org.springframework.batch.core.repository.JobRestartException e) {

log.error(e.getMessage());
}
}
}

0 comments on commit a519d43

Please sign in to comment.