mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
fix code
This commit is contained in:
@@ -26,7 +26,7 @@ public class DocUtil {
|
||||
*/
|
||||
public static XWPFDocument create(final File file) {
|
||||
try {
|
||||
return FileUtil.exist(file) ? new XWPFDocument(OPCPackage.open(file)) : new XWPFDocument();
|
||||
return FileUtil.exists(file) ? new XWPFDocument(OPCPackage.open(file)) : new XWPFDocument();
|
||||
} catch (final InvalidFormatException e) {
|
||||
throw new POIException(e);
|
||||
} catch (final IOException e) {
|
||||
|
Reference in New Issue
Block a user