8160036: Java API doc for method minusMonths in LocalDateTime class needs correction
Java API doc needs correction Reviewed-by: rriggs, scolebourne
This commit is contained in:
parent
f75520730b
commit
4879be16e2
@ -1407,8 +1407,8 @@ public final class LocalDateTime
|
||||
* </ol>
|
||||
* <p>
|
||||
* For example, 2008-02-29 (leap year) minus one year would result in the
|
||||
* invalid date 2009-02-29 (standard year). Instead of returning an invalid
|
||||
* result, the last valid day of the month, 2009-02-28, is selected instead.
|
||||
* invalid date 2007-02-29 (standard year). Instead of returning an invalid
|
||||
* result, the last valid day of the month, 2007-02-28, is selected instead.
|
||||
* <p>
|
||||
* This instance is immutable and unaffected by this method call.
|
||||
*
|
||||
@ -1431,8 +1431,8 @@ public final class LocalDateTime
|
||||
* </ol>
|
||||
* <p>
|
||||
* For example, 2007-03-31 minus one month would result in the invalid date
|
||||
* 2007-04-31. Instead of returning an invalid result, the last valid day
|
||||
* of the month, 2007-04-30, is selected instead.
|
||||
* 2007-02-31. Instead of returning an invalid result, the last valid day
|
||||
* of the month, 2007-02-28, is selected instead.
|
||||
* <p>
|
||||
* This instance is immutable and unaffected by this method call.
|
||||
*
|
||||
|
@ -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
|
||||
@ -1393,8 +1393,8 @@ public final class OffsetDateTime
|
||||
* </ol>
|
||||
* <p>
|
||||
* For example, 2008-02-29 (leap year) minus one year would result in the
|
||||
* invalid date 2009-02-29 (standard year). Instead of returning an invalid
|
||||
* result, the last valid day of the month, 2009-02-28, is selected instead.
|
||||
* invalid date 2007-02-29 (standard year). Instead of returning an invalid
|
||||
* result, the last valid day of the month, 2007-02-28, is selected instead.
|
||||
* <p>
|
||||
* This instance is immutable and unaffected by this method call.
|
||||
*
|
||||
@ -1417,8 +1417,8 @@ public final class OffsetDateTime
|
||||
* </ol>
|
||||
* <p>
|
||||
* For example, 2007-03-31 minus one month would result in the invalid date
|
||||
* 2007-04-31. Instead of returning an invalid result, the last valid day
|
||||
* of the month, 2007-04-30, is selected instead.
|
||||
* 2007-02-31. Instead of returning an invalid result, the last valid day
|
||||
* of the month, 2007-02-28, is selected instead.
|
||||
* <p>
|
||||
* This instance is immutable and unaffected by this method call.
|
||||
*
|
||||
@ -1437,7 +1437,7 @@ public final class OffsetDateTime
|
||||
* the month and year fields as necessary to ensure the result remains valid.
|
||||
* The result is only invalid if the maximum/minimum year is exceeded.
|
||||
* <p>
|
||||
* For example, 2008-12-31 minus one week would result in 2009-01-07.
|
||||
* For example, 2009-01-07 minus one week would result in 2008-12-31.
|
||||
* <p>
|
||||
* This instance is immutable and unaffected by this method call.
|
||||
*
|
||||
@ -1456,7 +1456,7 @@ public final class OffsetDateTime
|
||||
* month and year fields as necessary to ensure the result remains valid.
|
||||
* The result is only invalid if the maximum/minimum year is exceeded.
|
||||
* <p>
|
||||
* For example, 2008-12-31 minus one day would result in 2009-01-01.
|
||||
* For example, 2009-01-01 minus one day would result in 2008-12-31.
|
||||
* <p>
|
||||
* This instance is immutable and unaffected by this method call.
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user