From 8249bf752450d450b8e04ca06ddccd0d5495d23f Mon Sep 17 00:00:00 2001 From: Abjihit Roy Date: Mon, 26 Dec 2016 23:15:06 +0530 Subject: [PATCH] 8170653: The javadoc of ZoneRules.previousTransition() is wrong Reviewed-by: rriggs --- jdk/src/java.base/share/classes/java/time/zone/ZoneRules.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jdk/src/java.base/share/classes/java/time/zone/ZoneRules.java b/jdk/src/java.base/share/classes/java/time/zone/ZoneRules.java index ed2330f38ef..f2dee70fee6 100644 --- a/jdk/src/java.base/share/classes/java/time/zone/ZoneRules.java +++ b/jdk/src/java.base/share/classes/java/time/zone/ZoneRules.java @@ -871,13 +871,13 @@ public final class ZoneRules implements Serializable { /** * 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) {