8251542: Several small Javadoc errors in java.base

Fixing wrong exception type in throws clause and wrong return type description

Reviewed-by: darcy, dfuchs, mullan, mchung, rriggs
This commit is contained in:
Vipin Sharma 2020-08-25 09:27:36 +01:00 committed by Julia Boes
parent eaeddeddb1
commit d4626d89cc
8 changed files with 11 additions and 13 deletions

View file

@ -80,7 +80,7 @@ javax.crypto.interfaces.DHPrivateKey, Serializable {
* @param p the prime modulus
* @param g the base generator
*
* @exception ProviderException if the key cannot be encoded
* @throws ProviderException if the key cannot be encoded
*/
DHPrivateKey(BigInteger x, BigInteger p, BigInteger g)
throws InvalidKeyException {
@ -97,7 +97,7 @@ javax.crypto.interfaces.DHPrivateKey, Serializable {
* @param g the base generator
* @param l the private-value length
*
* @exception InvalidKeyException if the key cannot be encoded
* @throws ProviderException if the key cannot be encoded
*/
DHPrivateKey(BigInteger x, BigInteger p, BigInteger g, int l) {
this.x = x;
@ -118,7 +118,7 @@ javax.crypto.interfaces.DHPrivateKey, Serializable {
*
* @param encodedKey the encoded key
*
* @exception InvalidKeyException if the encoded key does not represent
* @throws InvalidKeyException if the encoded key does not represent
* a Diffie-Hellman private key
*/
DHPrivateKey(byte[] encodedKey) throws InvalidKeyException {