去除 toZonedDateTime 的 Deprecated 注解

pull/1/head
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} * @param zonedDateTime {@link ZonedDateTime}
* @return {@link Instant} * @return {@link Instant}
* @deprecated 使 {@link ZonedDateTime#toInstant()}
*/ */
@Deprecated
public static Instant toInstant(ZonedDateTime zonedDateTime) { // NOSONAR public static Instant toInstant(ZonedDateTime zonedDateTime) { // NOSONAR
return zonedDateTime.toInstant(); return zonedDateTime.toInstant();
} }
@ -342,10 +340,7 @@ public class DateTimeTools {
* @param localDateTime * @param localDateTime
* @param zone * @param zone
* @return * @return
*
* @deprecated 使 {@link ZonedDateTime#of(LocalDateTime, ZoneId)}
*/ */
@Deprecated
public static ZonedDateTime toZonedDateTime(LocalDateTime localDateTime, ZoneId zone) { // NOSONAR public static ZonedDateTime toZonedDateTime(LocalDateTime localDateTime, ZoneId zone) { // NOSONAR
return ZonedDateTime.of(localDateTime, zone); return ZonedDateTime.of(localDateTime, zone);
} }