去除 toZonedDateTime 的 Deprecated 注解

1.x.x
ZhouXY108 2024-11-26 16:05:42 +08:00
parent d2d824462b
commit 296e8995d6
1 changed files with 0 additions and 5 deletions

View File

@ -236,9 +236,7 @@ public class DateTimeTools {
*
* @param zonedDateTime {@link ZonedDateTime}
* @return {@link Instant}
* @deprecated 使 {@link ZonedDateTime#toInstant()}
*/
@Deprecated
public static Instant toInstant(ZonedDateTime zonedDateTime) { // NOSONAR
return zonedDateTime.toInstant();
}
@ -342,10 +340,7 @@ public class DateTimeTools {
* @param localDateTime
* @param zone
* @return
*
* @deprecated 使 {@link ZonedDateTime#of(LocalDateTime, ZoneId)}
*/
@Deprecated
public static ZonedDateTime toZonedDateTime(LocalDateTime localDateTime, ZoneId zone) { // NOSONAR
return ZonedDateTime.of(localDateTime, zone);
}