From 3294d4db620dcfff19e598a37000664f70694e4f Mon Sep 17 00:00:00 2001 From: mjkhan21 Date: Wed, 13 Sep 2023 14:03:41 +0900 Subject: [PATCH] =?UTF-8?q?mimeType,=20extension=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/cokr/xit/base/file/FileInfo.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/cokr/xit/base/file/FileInfo.java b/src/main/java/cokr/xit/base/file/FileInfo.java index c2d9e58..686bf82 100644 --- a/src/main/java/cokr/xit/base/file/FileInfo.java +++ b/src/main/java/cokr/xit/base/file/FileInfo.java @@ -430,7 +430,7 @@ public class FileInfo extends AbstractEntity { * @return mime type */ public String getMimeType() { - return Assert.ifEmpty(mimeType, mimeType = "application/octet-stream"); + return Assert.ifEmpty(mimeType, () -> mimeType = "application/octet-stream"); } /**mime type을 설정한다. @@ -444,7 +444,7 @@ public class FileInfo extends AbstractEntity { * @return 확장자 */ public String getExtension() { - return Assert.ifEmpty(extension, extension = extension(name)); + return Assert.ifEmpty(extension, () -> extension = extension(name)); } /**확장자를 설정한다.