mimeType, extension 수정

master
mjkhan21 1 year ago
parent a1f59ce8cc
commit 3294d4db62

@ -430,7 +430,7 @@ public class FileInfo extends AbstractEntity {
* @return mime type * @return mime type
*/ */
public String getMimeType() { public String getMimeType() {
return Assert.ifEmpty(mimeType, mimeType = "application/octet-stream"); return Assert.ifEmpty(mimeType, () -> mimeType = "application/octet-stream");
} }
/**mime type . /**mime type .
@ -444,7 +444,7 @@ public class FileInfo extends AbstractEntity {
* @return * @return
*/ */
public String getExtension() { public String getExtension() {
return Assert.ifEmpty(extension, extension = extension(name)); return Assert.ifEmpty(extension, () -> extension = extension(name));
} }
/** . /** .

Loading…
Cancel
Save