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

Commit

Permalink
8256839: JavaDoc for java.time.Period.negated() method
Browse files Browse the repository at this point in the history
Reviewed-by: rriggs, lancea, joehw, scolebourne
  • Loading branch information
naotoj committed Nov 23, 2020
1 parent b50b99d commit b3497f9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions 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
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit b3497f9

Please sign in to comment.