mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 14:54:52 +02:00
8170653: The javadoc of ZoneRules.previousTransition() is wrong
Reviewed-by: rriggs
This commit is contained in:
parent
f661cea33c
commit
8249bf7524
1 changed files with 2 additions and 2 deletions
|
@ -871,13 +871,13 @@ public final class ZoneRules implements Serializable {
|
|||
/**
|
||||
* Gets the previous transition before the specified instant.
|
||||
* <p>
|
||||
* This returns details of the previous transition after the specified instant.
|
||||
* This returns details of the previous transition before the specified instant.
|
||||
* For example, if the instant represents a point where "summer" daylight saving time
|
||||
* applies, then the method will return the transition from the previous "winter" time.
|
||||
*
|
||||
* @param instant the instant to get the previous transition after, not null, but null
|
||||
* may be ignored if the rules have a single offset for all instants
|
||||
* @return the previous transition after the specified instant, null if this is before the first transition
|
||||
* @return the previous transition before the specified instant, null if this is before the first transition
|
||||
*/
|
||||
public ZoneOffsetTransition previousTransition(Instant instant) {
|
||||
if (savingsInstantTransitions.length == 0) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue