diff --git a/src/java.base/share/classes/java/time/zone/ZoneRules.java b/src/java.base/share/classes/java/time/zone/ZoneRules.java index 480ff2bb27c..5945e801f15 100644 --- a/src/java.base/share/classes/java/time/zone/ZoneRules.java +++ b/src/java.base/share/classes/java/time/zone/ZoneRules.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2012, 2021, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2012, 2023, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -828,9 +828,9 @@ public final class ZoneRules implements Serializable { * This default implementation compares the {@link #getOffset(java.time.Instant) actual} * and {@link #getStandardOffset(java.time.Instant) standard} offsets. * - * @param instant the instant to find the offset information for, not null, but null + * @param instant the instant to check the daylight savings for, not null, but null * may be ignored if the rules have a single offset for all instants - * @return the standard offset, not null + * @return true if the specified instant is in daylight savings, false otherwise. */ public boolean isDaylightSavings(Instant instant) { return (getStandardOffset(instant).equals(getOffset(instant)) == false);