diff --git a/pom.xml b/pom.xml index 099925c..1c1b1aa 100644 --- a/pom.xml +++ b/pom.xml @@ -12,7 +12,7 @@ UTF-8 - 1.8 + 17 ${java.version} ${java.version} @@ -120,8 +120,8 @@ org.apache.maven.plugins maven-compiler-plugin - 1.8 - 1.8 + ${java.version} + ${java.version} UTF-8 diff --git a/src/main/java/cokr/xit/base/file/FileInfo.java b/src/main/java/cokr/xit/base/file/FileInfo.java index f3b4279..32ab267 100644 --- a/src/main/java/cokr/xit/base/file/FileInfo.java +++ b/src/main/java/cokr/xit/base/file/FileInfo.java @@ -8,7 +8,6 @@ import java.io.InputStream; import java.io.OutputStream; import java.net.URLConnection; import java.util.ArrayList; -import java.util.Arrays; import java.util.Base64; import java.util.Collections; import java.util.List; @@ -215,7 +214,7 @@ public class FileInfo extends AbstractEntity { * @return FileInfo 목록 */ public List createFileInfos(Relation relation, File... files) { - return createFileInfos(relation, Arrays.asList(files)); + return createFileInfos(relation, List.of(files)); } /**주어진 관계 정보 유형과 키, 그리고 파일로 FileInfo을 생성한다. @@ -263,7 +262,7 @@ public class FileInfo extends AbstractEntity { * @return FileInfo 목록 */ public List createFileInfos(DataHolder... dataHolders) { - return createFileInfos(Arrays.asList(dataHolders)); + return createFileInfos(List.of(dataHolders)); } /**파일 DataHolder에서 FileInfo를 생성한다. diff --git a/src/main/java/cokr/xit/base/file/service/FileService.java b/src/main/java/cokr/xit/base/file/service/FileService.java index f695e98..11f65cb 100644 --- a/src/main/java/cokr/xit/base/file/service/FileService.java +++ b/src/main/java/cokr/xit/base/file/service/FileService.java @@ -1,6 +1,5 @@ package cokr.xit.base.file.service; -import java.util.Arrays; import java.util.List; import cokr.xit.base.file.FileInfo; @@ -68,7 +67,7 @@ public interface FileService { * @return 저장된 정보수 */ default int create(FileInfo... files) { - return create(Arrays.asList(files)); + return create(List.of(files)); } /**주어진 파일 정보 아이디의 순서대로 정렬 순서를 변경한다. diff --git a/src/main/java/cokr/xit/base/file/web/FileInfoFactory.java b/src/main/java/cokr/xit/base/file/web/FileInfoFactory.java index d86e5b1..368b311 100644 --- a/src/main/java/cokr/xit/base/file/web/FileInfoFactory.java +++ b/src/main/java/cokr/xit/base/file/web/FileInfoFactory.java @@ -1,7 +1,6 @@ package cokr.xit.base.file.web; import java.util.ArrayList; -import java.util.Arrays; import java.util.Collections; import java.util.List; @@ -48,7 +47,7 @@ public class FileInfoFactory extends FileInfo.Factory { * @return FileInfo 목록 */ public List makeFileInfos(FileInfo.Relation relation, MultipartFile... multipartFiles) { - return makeFileInfos(relation, Arrays.asList(multipartFiles)); + return makeFileInfos(relation, List.of(multipartFiles)); } /**주어진 관계 정보 유형과 키, 그리고 업로드 파일로 FileInfo을 생성한다.