From 08e5a15424fecfe0c26c8ccd35e8601df380e637 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E7=B2=BE=E5=8D=8E?= <842761733@qq.com> Date: Tue, 26 Mar 2024 16:47:21 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=BB=E9=99=A4@Nullable=E6=B3=A8=E8=A7=A3?= =?UTF-8?q?=EF=BC=8C=E8=A7=A3=E5=86=B3=E7=BC=96=E8=AF=91warning:=E6=9C=AA?= =?UTF-8?q?=E7=9F=A5=E7=9A=84=E6=9E=9A=E4=B8=BE=E5=B8=B8=E9=87=8F=20javax.?= =?UTF-8?q?annotation.meta.When.MAYBE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/src/main/java/cn/keking/utils/OfficeUtils.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/server/src/main/java/cn/keking/utils/OfficeUtils.java b/server/src/main/java/cn/keking/utils/OfficeUtils.java index 4bc7effd..fb60423f 100644 --- a/server/src/main/java/cn/keking/utils/OfficeUtils.java +++ b/server/src/main/java/cn/keking/utils/OfficeUtils.java @@ -4,7 +4,6 @@ import org.apache.commons.lang3.exception.ExceptionUtils; import org.apache.poi.EncryptedDocumentException; import org.apache.poi.extractor.ExtractorFactory; import org.apache.poi.hssf.record.crypto.Biff8EncryptionKey; -import org.springframework.lang.Nullable; import java.io.IOException; import java.io.InputStream; @@ -63,7 +62,7 @@ public class OfficeUtils { * @param password 文件密码 * @return 是否可打开(兼容) */ - public static synchronized boolean isCompatible(String path, @Nullable String password) { + public static synchronized boolean isCompatible(String path, String password) { InputStream propStream = null; try { propStream = Files.newInputStream(Paths.get(path));