8256839: JavaDoc for java.time.Period.negated() method

Reviewed-by: rriggs, lancea, joehw, scolebourne
This commit is contained in:
Naoto Sato 2020-11-23 22:17:45 +00:00
parent b50b99dfcb
commit b3497f9b36

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2012, 2019, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2012, 2020, 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
@ -808,7 +808,7 @@ public final class Period
*
* @return a {@code Period} based on this period with the amounts negated, not null
* @throws ArithmeticException if numeric overflow occurs, which only happens if
* one of the units has the value {@code Long.MIN_VALUE}
* one of the units has the value {@code Integer.MIN_VALUE}
*/
public Period negated() {
return multipliedBy(-1);