Skip to content
This repository was archived by the owner on Aug 27, 2022. It is now read-only.

Commit b3497f9

Browse files
committed
8256839: JavaDoc for java.time.Period.negated() method
Reviewed-by: rriggs, lancea, joehw, scolebourne
1 parent b50b99d commit b3497f9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/java.base/share/classes/java/time/Period.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2012, 2019, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2012, 2020, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -808,7 +808,7 @@ public Period multipliedBy(int scalar) {
808808
*
809809
* @return a {@code Period} based on this period with the amounts negated, not null
810810
* @throws ArithmeticException if numeric overflow occurs, which only happens if
811-
* one of the units has the value {@code Long.MIN_VALUE}
811+
* one of the units has the value {@code Integer.MIN_VALUE}
812812
*/
813813
public Period negated() {
814814
return multipliedBy(-1);

0 commit comments

Comments
 (0)