From b3497f9b3648895db462648996c3956384b0e0c1 Mon Sep 17 00:00:00 2001 From: Naoto Sato Date: Mon, 23 Nov 2020 22:17:45 +0000 Subject: [PATCH] 8256839: JavaDoc for java.time.Period.negated() method Reviewed-by: rriggs, lancea, joehw, scolebourne --- src/java.base/share/classes/java/time/Period.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/java.base/share/classes/java/time/Period.java b/src/java.base/share/classes/java/time/Period.java index 29ae32caae7..b5e1ce5e571 100644 --- a/src/java.base/share/classes/java/time/Period.java +++ b/src/java.base/share/classes/java/time/Period.java @@ -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 Period multipliedBy(int scalar) { * * @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);