mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 14:54:52 +02:00
8134373: use collections convenience factories in the JDK
Reviewed-by: scolebourne, prappo, dfuchs, redestad, smarks
This commit is contained in:
parent
8c7dc29389
commit
a19fc7fbdb
19 changed files with 67 additions and 100 deletions
|
@ -303,7 +303,6 @@ public final class ZoneRules implements Serializable {
|
|||
* 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) {
|
||||
|
@ -970,7 +969,7 @@ public final class ZoneRules implements Serializable {
|
|||
* @return an immutable list of transition rules, not null
|
||||
*/
|
||||
public List<ZoneOffsetTransitionRule> getTransitionRules() {
|
||||
return Collections.unmodifiableList(Arrays.asList(lastRules));
|
||||
return List.of(lastRules);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue