Skip to content
Permalink
Browse files
8261940: Fix references to IOException in BigDecimal javadoc
Reviewed-by: alanb, chegar, iris, bpb
  • Loading branch information
jddarcy committed Feb 18, 2021
1 parent 0e9c5ae commit c4664e64463aa9d3f231e1115857b1a20213d8ab
Showing with 3 additions and 2 deletions.
  1. +3 −2 src/java.base/share/classes/java/math/BigDecimal.java
@@ -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;

@@ -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
@@ -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));

1 comment on commit c4664e6

@openjdk-notifier

This comment has been minimized.

Copy link

@openjdk-notifier openjdk-notifier bot commented on c4664e6 Feb 18, 2021

Please sign in to comment.