移除@Nullable注解,解决编译warning:未知的枚举常量 javax.annotation.meta.When.MAYBE

This commit is contained in:
陈精华 2024-03-26 16:47:21 +08:00
parent b8c283f602
commit 08e5a15424
No known key found for this signature in database
GPG Key ID: 30BDC970902B755D
1 changed files with 1 additions and 2 deletions

View File

@ -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));