This commit is contained in:
looly 2021-11-24 09:35:50 +08:00
parent d0a86d5734
commit 612884e0f6
2 changed files with 3 additions and 1 deletions

View File

@ -1624,7 +1624,9 @@ public class DateUtil extends CalendarUtil {
*
* @param date 日期
* @return int
* @deprecated 2022年后结果溢出此方法废弃
*/
@Deprecated
public static int toIntSecond(Date date) {
return Integer.parseInt(DateUtil.format(date, "yyMMddHHmm"));
}

View File

@ -56,7 +56,7 @@ public class Excel07SaxReader implements ExcelSaxReader<Excel07SaxReader> {
@Override
public Excel07SaxReader read(File file, String idOrRidOrSheetName) throws POIException {
try (OPCPackage open = OPCPackage.open(file, PackageAccess.READ);){
try (OPCPackage open = OPCPackage.open(file, PackageAccess.READ)){
return read(open, idOrRidOrSheetName);
} catch (InvalidFormatException | IOException e) {
throw new POIException(e);