# HG changeset patch # User rriggs # Date 1482774306 -19800 # Node ID e2fdc8ee8588c2e3af245f3f884fe85a881e7202 # Parent 93a6492387c493eb5e01b8db3d8afbd037efa34b 8170653: The javadoc of ZoneRules.previousTransition() is wrong Reviewed-by: rriggs Contributed-by: abhijit.r.roy@oracle.com diff -r 93a6492387c4 -r e2fdc8ee8588 jdk/src/java.base/share/classes/java/time/zone/ZoneRules.java --- a/jdk/src/java.base/share/classes/java/time/zone/ZoneRules.java Mon Dec 26 23:09:54 2016 +0530 +++ b/jdk/src/java.base/share/classes/java/time/zone/ZoneRules.java Mon Dec 26 23:15:06 2016 +0530 @@ -871,13 +871,13 @@ /** * Gets the previous transition before the specified instant. *

- * 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) {