OpenJDK / jdk-updates / jdk12u
changeset 32770:ea644e64cc88
8129744: Documentation in Month refers to quarters
8129556: TemporalAdjusters dayOfWeekInMonth wrongly says "in the same month"
Reviewed-by: chegar, scolebourne
author | rriggs |
---|---|
date | Thu, 24 Sep 2015 11:01:01 -0400 |
parents | c9520bbd6754 |
children | 732bf1c40a25 |
files | jdk/src/java.base/share/classes/java/time/Month.java jdk/src/java.base/share/classes/java/time/temporal/TemporalAdjusters.java |
diffstat | 2 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/jdk/src/java.base/share/classes/java/time/Month.java Thu Sep 24 17:07:44 2015 +0300 +++ b/jdk/src/java.base/share/classes/java/time/Month.java Thu Sep 24 11:01:01 2015 -0400 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2012, 2015, 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 @@ -379,7 +379,7 @@ //----------------------------------------------------------------------- /** - * Returns the month-of-year that is the specified number of quarters after this one. + * Returns the month-of-year that is the specified number of months after this one. * <p> * The calculation rolls around the end of the year from December to January. * The specified period may be negative.
--- a/jdk/src/java.base/share/classes/java/time/temporal/TemporalAdjusters.java Thu Sep 24 17:07:44 2015 +0300 +++ b/jdk/src/java.base/share/classes/java/time/temporal/TemporalAdjusters.java Thu Sep 24 11:01:01 2015 -0400 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2012, 2015, 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 @@ -313,7 +313,7 @@ /** * Returns the day-of-week in month adjuster, which returns a new date - * in the same month with the ordinal day-of-week. + * with the ordinal day-of-week based on the month. * This is used for expressions like the 'second Tuesday in March'. * <p> * The ISO calendar system behaves as follows:<br>