< prev index next >
src/java.base/share/classes/java/time/zone/ZoneRules.java
Print this page
*** 301,311 ****
/**
* Creates an instance of ZoneRules that has fixed zone rules.
*
* @param offset the offset this fixed zone rules is based on, not null
- * @return the zone rules, not null
* @see #isFixedOffset()
*/
private ZoneRules(ZoneOffset offset) {
this.standardOffsets = new ZoneOffset[1];
this.standardOffsets[0] = offset;
--- 301,310 ----
*** 968,978 ****
* daylight saving time. The list will also be empty if the transition rules are unknown.
*
* @return an immutable list of transition rules, not null
*/
public List<ZoneOffsetTransitionRule> getTransitionRules() {
! return Collections.unmodifiableList(Arrays.asList(lastRules));
}
/**
* Checks if this set of rules equals another.
* <p>
--- 967,977 ----
* daylight saving time. The list will also be empty if the transition rules are unknown.
*
* @return an immutable list of transition rules, not null
*/
public List<ZoneOffsetTransitionRule> getTransitionRules() {
! return List.of(lastRules);
}
/**
* Checks if this set of rules equals another.
* <p>
< prev index next >