jdk/src/java.base/share/classes/java/time/LocalDate.java
changeset 34388 ab5f741f776a
parent 33847 7857fc64d0c0
child 34828 bc3eacb42ab1
equal deleted inserted replaced
34387:92a5f8d50d1a 34388:ab5f741f776a
   305      *
   305      *
   306      * @param instant  the instant to create the date from, not null
   306      * @param instant  the instant to create the date from, not null
   307      * @param zone  the time-zone, which may be an offset, not null
   307      * @param zone  the time-zone, which may be an offset, not null
   308      * @return the local date, not null
   308      * @return the local date, not null
   309      * @throws DateTimeException if the result exceeds the supported range
   309      * @throws DateTimeException if the result exceeds the supported range
       
   310      * @since 9
   310      */
   311      */
   311     public static LocalDate ofInstant(Instant instant, ZoneId zone) {
   312     public static LocalDate ofInstant(Instant instant, ZoneId zone) {
   312         Objects.requireNonNull(instant, "instant");
   313         Objects.requireNonNull(instant, "instant");
   313         Objects.requireNonNull(zone, "zone");
   314         Objects.requireNonNull(zone, "zone");
   314         ZoneRules rules = zone.getRules();
   315         ZoneRules rules = zone.getRules();