Skip to content
This repository has been archived by the owner on Nov 27, 2024. It is now read-only.

Commit

Permalink
refactor CreateDocumentService.java
Browse files Browse the repository at this point in the history
Arrays.asList -> List.of 사용
  • Loading branch information
ori0o0p committed Mar 21, 2024
1 parent a621932 commit b3e75ff
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
import org.springframework.stereotype.Service;
import reactor.core.publisher.Mono;

import java.util.Arrays;
import java.util.List;

@Service
Expand Down Expand Up @@ -50,9 +49,9 @@ public Mono<DefaultDocument> createByUser(User user) {
}

private Mono<DefaultDocument> createDocument(User user) {
List<List<String>> groups = Arrays.asList(
Arrays.asList("학생", user.getDetail().getGen() + "기", user.getName()),
Arrays.asList("전공", user.getDetail().getMajor().getMajor())
List<List<String>> groups = List.of(
List.of("학생", user.getDetail().getGen() + "기", user.getName()),
List.of("전공", user.getDetail().getMajor().getMajor())
);

return createDocumentFacade.create(SaveDocumentRequest
Expand Down

0 comments on commit b3e75ff

Please sign in to comment.