Skip to content

Commit

Permalink
refactor: 코드 컨벤션 준수 (#308)
Browse files Browse the repository at this point in the history
  • Loading branch information
kdkdhoho committed Oct 12, 2024
1 parent 0086a75 commit ea89bca
Show file tree
Hide file tree
Showing 8 changed files with 4 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
public class QuerydslConfig {

@Bean
JPAQueryFactory jpaQueryFactory(EntityManager em){
JPAQueryFactory jpaQueryFactory(EntityManager em) {
return new JPAQueryFactory(em);
}
}
2 changes: 1 addition & 1 deletion src/main/java/com/listywave/common/config/WebConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public class WebConfig implements WebMvcConfigurer {

@Value("${cors.allowedOrigins}")
private String[] allowedOrigins;

@Override
public void addCorsMappings(CorsRegistry registry) {
registry.addMapping("/**")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

@Getter
@AllArgsConstructor
public class CustomException extends RuntimeException{
public class CustomException extends RuntimeException {

private final ErrorCode errorCode;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public static ResponseEntity<ErrorResponse> toResponseEntity(CustomException e)
errorCode.getDetail(),
e.getMessage()
);

return ResponseEntity.status(errorCode.getStatus()).body(errorResponse);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import com.listywave.list.application.domain.item.Item;
import com.listywave.list.application.domain.list.ListEntity;
import java.time.LocalDateTime;
import java.util.Comparator;
import java.util.List;
import lombok.Builder;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
import static com.listywave.list.application.domain.category.CategoryType.ENTIRE;
import static com.listywave.list.application.domain.comment.QComment.comment;
import static com.listywave.list.application.domain.item.QItem.item;
import static com.listywave.list.application.domain.label.QLabel.label;
import static com.listywave.list.application.domain.list.QListEntity.listEntity;
import static com.listywave.list.application.domain.reply.QReply.reply;
import static com.listywave.user.application.domain.QUser.user;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@

import com.listywave.alarm.application.domain.AlarmEvent;
import com.listywave.common.exception.CustomException;
import com.listywave.list.application.domain.list.ListEntity;
import com.listywave.list.repository.list.ListRepository;
import com.listywave.user.application.domain.Follow;
import com.listywave.user.application.domain.User;
import com.listywave.user.application.dto.FollowersResponse;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
import com.listywave.user.application.dto.search.UserElasticSearchResponse;
import com.listywave.user.application.dto.search.UserSearchResponse;
import com.listywave.user.application.service.UserService;
import com.listywave.user.presentation.dto.ListVisibilityUpdateRequest;
import com.listywave.user.presentation.dto.UserProfileUpdateRequest;
import java.util.List;
import lombok.RequiredArgsConstructor;
Expand Down

0 comments on commit ea89bca

Please sign in to comment.