< prev index next >

src/java.base/share/classes/java/time/zone/ZoneOffsetTransition.java

Print this page

        

*** 385,397 **** * * @return the list of valid offsets */ List<ZoneOffset> getValidOffsets() { if (isGap()) { ! return Collections.emptyList(); } ! return Arrays.asList(getOffsetBefore(), getOffsetAfter()); } //----------------------------------------------------------------------- /** * Compares this transition to another based on the transition instant. --- 385,397 ---- * * @return the list of valid offsets */ List<ZoneOffset> getValidOffsets() { if (isGap()) { ! return List.of(); } ! return List.of(getOffsetBefore(), getOffsetAfter()); } //----------------------------------------------------------------------- /** * Compares this transition to another based on the transition instant.
< prev index next >