Skip to content

Commit

Permalink
8261940: Fix references to IOException in BigDecimal javadoc
Browse files Browse the repository at this point in the history
Reviewed-by: alanb, chegar, iris, bpb
  • Loading branch information
jddarcy committed Feb 18, 2021
1 parent 0e9c5ae commit c4664e6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/java.base/share/classes/java/math/BigDecimal.java
Expand Up @@ -30,6 +30,7 @@
package java.math;

import static java.math.BigInteger.LONG_MASK;
import java.io.IOException;
import java.util.Arrays;
import java.util.Objects;

Expand Down Expand Up @@ -4224,7 +4225,7 @@ static void setIntValVolatile(BigDecimal bd, BigInteger val) {
*/
@java.io.Serial
private void readObject(java.io.ObjectInputStream s)
throws java.io.IOException, ClassNotFoundException {
throws IOException, ClassNotFoundException {
// Read in all fields
s.defaultReadObject();
// validate possibly bad fields
Expand All @@ -4244,7 +4245,7 @@ private void readObject(java.io.ObjectInputStream s)
*/
@java.io.Serial
private void writeObject(java.io.ObjectOutputStream s)
throws java.io.IOException {
throws IOException {
// Must inflate to maintain compatible serial form.
if (this.intVal == null)
UnsafeHolder.setIntValVolatile(this, BigInteger.valueOf(this.intCompact));
Expand Down

1 comment on commit c4664e6

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.