# HG changeset patch # User rriggs # Date 1482518541 18000 # Node ID 955f6bc7abfd106db59a266eb33bcc000945d5f6 # Parent 1a9931e1c0f58b1aa4bf91bca4d41d1ced4b0c03 8171940: Incorrect statement about an absolute value of months unit after period's normalization Reviewed-by: bpb diff -r 1a9931e1c0f5 -r 955f6bc7abfd jdk/src/java.base/share/classes/java/time/Period.java --- a/jdk/src/java.base/share/classes/java/time/Period.java Fri Dec 23 13:53:22 2016 +0530 +++ b/jdk/src/java.base/share/classes/java/time/Period.java Fri Dec 23 13:42:21 2016 -0500 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2012, 2016, 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 @@ -818,7 +818,7 @@ * Returns a copy of this period with the years and months normalized. *

* This normalizes the years and months units, leaving the days unit unchanged. - * The months unit is adjusted to have an absolute value less than 11, + * The months unit is adjusted to have an absolute value less than 12, * with the years unit being adjusted to compensate. For example, a period of * "1 Year and 15 months" will be normalized to "2 years and 3 months". *