Browse Source

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

pull/283/MERGE
陈精华 8 months ago
parent
commit
08e5a15424
No known key found for this signature in database
GPG Key ID: 30BDC970902B755D
  1. 3
      server/src/main/java/cn/keking/utils/OfficeUtils.java

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

Loading…
Cancel
Save