Summary
Correction to the @param/@return descriptions of java.time.zone.ZoneRules#isDaylightSavings()
.
Problem
The description of the argument and the return value of ZoneRules#isDaylightSavings()
are incorrect. Looks like merely copied from getStandardOffset()
.
Solution
Correct those descriptions for daylight savings.
Specification
Change the @param
and @return
descriptions of the ZoneRules#isDaylightSavings(Instant)
method as follows:
- * @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.
*/
- csr of
-
JDK-8321958 @param/@return descriptions of ZoneRules#isDaylightSavings() are incorrect
-
- Resolved
-