Skip to content

Commit 5310d85

Browse files
author
Brian Burkhalter
committedSep 29, 2020
8252937: Correct "no comment" warnings from javadoc in java.math package
Reviewed-by: darcy
1 parent 8df3e72 commit 5310d85

File tree

3 files changed

+16
-4
lines changed

3 files changed

+16
-4
lines changed
 

‎src/java.base/share/classes/java/math/BigDecimal.java

+5-2
Original file line numberDiff line numberDiff line change
@@ -4208,7 +4208,9 @@ static void setIntValVolatile(BigDecimal bd, BigInteger val) {
42084208
* Reconstitute the {@code BigDecimal} instance from a stream (that is,
42094209
* deserialize it).
42104210
*
4211-
* @param s the stream being read.
4211+
* @param s the stream being read.
4212+
* @throws IOException if an I/O error occurs
4213+
* @throws ClassNotFoundException if a serialized class cannot be loaded
42124214
*/
42134215
@java.io.Serial
42144216
private void readObject(java.io.ObjectInputStream s)
@@ -4227,7 +4229,8 @@ private void readObject(java.io.ObjectInputStream s)
42274229
/**
42284230
* Serialize this {@code BigDecimal} to the stream in question
42294231
*
4230-
* @param s the stream to serialize to.
4232+
* @param s the stream to serialize to.
4233+
* @throws IOException if an I/O error occurs
42314234
*/
42324235
@java.io.Serial
42334236
private void writeObject(java.io.ObjectOutputStream s)

‎src/java.base/share/classes/java/math/BigInteger.java

+7
Original file line numberDiff line numberDiff line change
@@ -4657,6 +4657,10 @@ private int firstNonzeroIntNum() {
46574657
* marker value. Therefore, no explicit action to set these fields needs to
46584658
* be taken in readObject because those fields already have a 0 value by
46594659
* default since defaultReadObject is not being used.
4660+
*
4661+
* @param s the stream being read.
4662+
* @throws IOException if an I/O error occurs
4663+
* @throws ClassNotFoundException if a serialized class cannot be loaded
46604664
*/
46614665
@java.io.Serial
46624666
private void readObject(java.io.ObjectInputStream s)
@@ -4724,6 +4728,9 @@ static void putMag(BigInteger bi, int[] magnitude) {
47244728
* {@code firstNonzeroByteNum}, respectively. These values are compatible
47254729
* with older implementations, but will be ignored by current
47264730
* implementations.
4731+
*
4732+
* @param s the stream to serialize to.
4733+
* @throws IOException if an I/O error occurs
47274734
*/
47284735
@java.io.Serial
47294736
private void writeObject(ObjectOutputStream s) throws IOException {

‎src/java.base/share/classes/java/math/MathContext.java

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2003, 2019, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2003, 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
@@ -308,7 +308,9 @@ public java.lang.String toString() {
308308
* Reconstitute the {@code MathContext} instance from a stream (that is,
309309
* deserialize it).
310310
*
311-
* @param s the stream being read.
311+
* @param s the stream being read.
312+
* @throws IOException if an I/O error occurs
313+
* @throws ClassNotFoundException if a serialized class cannot be loaded
312314
*/
313315
@java.io.Serial
314316
private void readObject(java.io.ObjectInputStream s)

0 commit comments

Comments
 (0)
Please sign in to comment.