mirror of
https://gitee.com/dromara/hutool.git
synced 2025-05-04 04:37:59 +08:00
fix code
This commit is contained in:
parent
d0a86d5734
commit
612884e0f6
@ -1624,7 +1624,9 @@ public class DateUtil extends CalendarUtil {
|
|||||||
*
|
*
|
||||||
* @param date 日期
|
* @param date 日期
|
||||||
* @return int
|
* @return int
|
||||||
|
* @deprecated 2022年后结果溢出,此方法废弃
|
||||||
*/
|
*/
|
||||||
|
@Deprecated
|
||||||
public static int toIntSecond(Date date) {
|
public static int toIntSecond(Date date) {
|
||||||
return Integer.parseInt(DateUtil.format(date, "yyMMddHHmm"));
|
return Integer.parseInt(DateUtil.format(date, "yyMMddHHmm"));
|
||||||
}
|
}
|
||||||
|
@ -56,7 +56,7 @@ public class Excel07SaxReader implements ExcelSaxReader<Excel07SaxReader> {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Excel07SaxReader read(File file, String idOrRidOrSheetName) throws POIException {
|
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);
|
return read(open, idOrRidOrSheetName);
|
||||||
} catch (InvalidFormatException | IOException e) {
|
} catch (InvalidFormatException | IOException e) {
|
||||||
throw new POIException(e);
|
throw new POIException(e);
|
||||||
|
Loading…
Reference in New Issue
Block a user