Skip to content

Commit

Permalink
[chore] spotless 적용 #88
Browse files Browse the repository at this point in the history
  • Loading branch information
wjdtkdgns committed Aug 4, 2023
1 parent b33ed93 commit f25af49
Show file tree
Hide file tree
Showing 9 changed files with 8 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,10 @@ public Content toEntity(CreateContentRequest request) {
}

public ContentTagResponse toContentTagResponse(
Content content, List<ContentTagGroup> contentTagGroupList, Boolean isMine, Long ownerId) {
Content content,
List<ContentTagGroup> contentTagGroupList,
Boolean isMine,
Long ownerId) {
List<TagResponse> tagResponseList =
contentTagGroupList.stream()
.map(contentTagGroup -> TagResponse.from(contentTagGroup.getTag()))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
import allchive.server.domain.common.model.BaseTimeEntity;
import allchive.server.domain.domains.archiving.domain.enums.Category;
import allchive.server.domain.domains.archiving.exception.exceptions.*;

import java.util.ArrayList;
import java.util.List;
import javax.persistence.*;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,7 @@
import allchive.server.core.annotation.Validator;
import allchive.server.domain.domains.archiving.adaptor.ArchivingAdaptor;
import allchive.server.domain.domains.archiving.domain.Archiving;
import allchive.server.domain.domains.archiving.exception.exceptions.AlreadyPinnedArchivingException;
import allchive.server.domain.domains.archiving.exception.exceptions.ArchivingNotFoundException;
import allchive.server.domain.domains.archiving.exception.exceptions.NoAuthurityUpdateArchivingException;
import allchive.server.domain.domains.archiving.exception.exceptions.NotPinnedArchivingException;
import java.util.List;
import lombok.RequiredArgsConstructor;

Expand Down Expand Up @@ -51,8 +48,7 @@ public void validateExistInIdList(List<Long> archivingIdList) {

public void verifyUserInIdList(Long userId, List<Long> archivingIds) {
List<Archiving> archivingList = archivingAdaptor.findAllByIdIn(archivingIds);
archivingList.forEach(
archiving -> archiving.validateUser(userId));
archivingList.forEach(archiving -> archiving.validateUser(userId));
}

public void validateNotDeleted(Long archivingId) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,8 @@

import allchive.server.domain.common.model.BaseTimeEntity;
import allchive.server.domain.domains.content.domain.enums.ContentType;
import javax.persistence.*;

import allchive.server.domain.domains.content.exception.exceptions.AlreadyDeletedContentException;
import javax.persistence.*;
import lombok.AccessLevel;
import lombok.Builder;
import lombok.Getter;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
import allchive.server.domain.domains.archiving.domain.Archiving;
import allchive.server.domain.domains.content.adaptor.ContentAdaptor;
import allchive.server.domain.domains.content.domain.Content;
import allchive.server.domain.domains.content.exception.exceptions.AlreadyDeletedContentException;
import allchive.server.domain.domains.content.exception.exceptions.ContentNotFoundException;
import allchive.server.domain.domains.content.exception.exceptions.NoAuthorityUpdateContentException;
import allchive.server.domain.domains.content.exception.exceptions.NotPublicContentException;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
import allchive.server.core.annotation.Validator;
import allchive.server.domain.domains.content.adaptor.TagAdaptor;
import allchive.server.domain.domains.content.domain.Tag;
import allchive.server.domain.domains.content.exception.exceptions.NoAuthorityUpdateTagException;
import allchive.server.domain.domains.content.exception.exceptions.TagNotFoundException;
import java.util.List;
import lombok.RequiredArgsConstructor;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,8 @@


import allchive.server.domain.common.model.BaseTimeEntity;
import javax.persistence.*;

import allchive.server.domain.domains.search.exception.exceptions.NoAuthorityUpdateLatestSearchException;
import javax.persistence.*;
import lombok.AccessLevel;
import lombok.Builder;
import lombok.Getter;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
import allchive.server.domain.domains.search.adaptor.LatestSearchAdaptor;
import allchive.server.domain.domains.search.domain.LatestSearch;
import allchive.server.domain.domains.search.exception.exceptions.LatestSearchNotFoundException;
import allchive.server.domain.domains.search.exception.exceptions.NoAuthorityUpdateLatestSearchException;
import java.util.List;
import lombok.RequiredArgsConstructor;

Expand All @@ -23,9 +22,6 @@ public void validateExistByIdIn(List<Long> ids) {

public void verifyUserByIdIn(List<Long> ids, Long userId) {
List<LatestSearch> searches = latestSearchAdaptor.findAllByIdIn(ids);
searches.forEach(
search ->
search.validateUser(userId)
);
searches.forEach(search -> search.validateUser(userId));
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@
import allchive.server.core.annotation.Validator;
import allchive.server.domain.domains.user.adaptor.UserAdaptor;
import allchive.server.domain.domains.user.domain.enums.OauthInfo;
import allchive.server.domain.domains.user.domain.enums.UserState;
import allchive.server.domain.domains.user.exception.exceptions.AlreadySignUpUserException;
import allchive.server.domain.domains.user.exception.exceptions.ForbiddenUserException;
import allchive.server.domain.domains.user.exception.exceptions.UserNotFoundException;
import lombok.RequiredArgsConstructor;

Expand Down

0 comments on commit f25af49

Please sign in to comment.