src/share/classes/java/time/zone/ZoneOffsetTransitionRule.java

Print this page

        

@@ -72,11 +72,11 @@
 import java.time.LocalDate;
 import java.time.LocalDateTime;
 import java.time.LocalTime;
 import java.time.Month;
 import java.time.ZoneOffset;
-import java.time.temporal.ISOChrono;
+import java.time.chrono.IsoChronology;
 import java.util.Objects;
 
 /**
  * A rule expressing how to create a transition.
  * <p>

@@ -428,11 +428,11 @@
      * @return the transition instance, not null
      */
     public ZoneOffsetTransition createTransition(int year) {
         LocalDate date;
         if (dom < 0) {
-            date = LocalDate.of(year, month, month.length(ISOChrono.INSTANCE.isLeapYear(year)) + 1 + dom);
+            date = LocalDate.of(year, month, month.length(IsoChronology.INSTANCE.isLeapYear(year)) + 1 + dom);
             if (dow != null) {
                 date = date.with(previousOrSame(dow));
             }
         } else {
             date = LocalDate.of(year, month, dom);