diff --git a/daemawiki-api/src/main/java/org/daemawiki/domain/document/usecase/service/CreateDocumentService.java b/daemawiki-api/src/main/java/org/daemawiki/domain/document/usecase/service/CreateDocumentService.java index 25821f7b..5611e91f 100644 --- a/daemawiki-api/src/main/java/org/daemawiki/domain/document/usecase/service/CreateDocumentService.java +++ b/daemawiki-api/src/main/java/org/daemawiki/domain/document/usecase/service/CreateDocumentService.java @@ -14,7 +14,6 @@ import org.springframework.stereotype.Service; import reactor.core.publisher.Mono; -import java.util.Arrays; import java.util.List; @Service @@ -50,9 +49,9 @@ public Mono createByUser(User user) { } private Mono createDocument(User user) { - List> groups = Arrays.asList( - Arrays.asList("학생", user.getDetail().getGen() + "기", user.getName()), - Arrays.asList("전공", user.getDetail().getMajor().getMajor()) + List> groups = List.of( + List.of("학생", user.getDetail().getGen() + "기", user.getName()), + List.of("전공", user.getDetail().getMajor().getMajor()) ); return createDocumentFacade.create(SaveDocumentRequest