Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files
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
  • Loading branch information
Vipin-Sharma authored and FrauBoes committed Aug 25, 2020
1 parent c3296c4 commit bb354b9dd12f9e8f03ce38e9e8a24f6157fc8d1a
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 13 deletions.
@@ -80,7 +80,7 @@ final class DHPrivateKey implements PrivateKey,
* @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 @@ final class DHPrivateKey implements PrivateKey,
* @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 @@ final class DHPrivateKey implements PrivateKey,
*
* @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 {
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2012, 2013, 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
@@ -208,7 +208,7 @@
*
* @return a CallSite, which, when invoked, will return an instance of the
* functional interface
* @throws ReflectiveOperationException
* @throws LambdaConversionException
*/
abstract CallSite buildCallSite()
throws LambdaConversionException;
@@ -200,7 +200,6 @@ private static String lambdaClassName(Class<?> targetClass) {
*
* @return a CallSite, which, when invoked, will return an instance of the
* functional interface
* @throws ReflectiveOperationException
* @throws LambdaConversionException If properly formed functional interface
* is not found
*/
@@ -5403,7 +5403,7 @@ static BigDecimal scaledTenPow(int n, int sign, int scale) {
*
* @param n the numerator; must be negative
* @param d the denominator; must not be unity
* @return a two-element {@long} array with the remainder and quotient in
* @return a two-element {@code long} array with the remainder and quotient in
* the initial and final elements, respectively
*/
private static long[] divRemNegativeLong(long n, long d) {
@@ -145,7 +145,6 @@ class MutableBigInteger {
* Makes this number an {@code n}-int number all of whose bits are ones.
* Used by Burnikel-Ziegler division.
* @param n number of ints in the {@code value} array
* @return a number equal to {@code ((1<<(32*n)))-1}
*/
private void ones(int n) {
if (n > value.length)
@@ -1,5 +1,5 @@
/*
* Copyright (c) 1995, 2019, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1995, 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
@@ -315,7 +315,7 @@ private void setImpl() {
/**
* Creates the socket implementation.
*
* @throws IOException if creation fails
* @throws SocketException if creation fails
* @since 1.4
*/
void createImpl() throws SocketException {
@@ -533,7 +533,7 @@ private Socket(SocketAddress address, SocketAddress localAddr,
*
* @param stream a {@code boolean} value : {@code true} for a TCP socket,
* {@code false} for UDP.
* @throws IOException if creation fails
* @throws SocketException if creation fails
* @since 1.4
*/
void createImpl(boolean stream) throws SocketException {
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2003, 2013, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2003, 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
@@ -773,7 +773,7 @@ private static ExceptionProxy exceptionProxy(int tag) {
* an "annotation structure" OR two bytes into an annotation
* structure (i.e., after the type index).
*
* @parameter complete true if the byte buffer points to the beginning
* @param complete true if the byte buffer points to the beginning
* of an annotation structure (rather than two bytes in).
*/
private static void skipAnnotation(ByteBuffer buf, boolean complete) {

0 comments on commit bb354b9

Please sign in to comment.