Skip to content

Commit

Permalink
移除@nullable注解,解决编译warning:未知的枚举常量 javax.annotation.meta.When.MAYBE
Browse files Browse the repository at this point in the history
  • Loading branch information
gitchenjh committed Mar 26, 2024
1 parent b8c283f commit 08e5a15
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions server/src/main/java/cn/keking/utils/OfficeUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
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;
Expand Down Expand Up @@ -63,7 +62,7 @@ public static boolean isPwdProtected(String path) {
* @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));
Expand Down

0 comments on commit 08e5a15

Please sign in to comment.