On Thu, 3 Dec 2020 20:58:55 GMT, Xue-Lei Andrew Fan <[email protected]> wrote:
> In the StatusResponseManager.get() method spec, the SSLHandshakeException is
> declared as throws exception. However, no such checked-exception would be
> thrown in the method implementation.
>
> /**
> ...
> * @throws SSLHandshakeException if an unsupported
> * {@code CertStatusRequest} is provided.
> */
> Map<X509Certificate, byte[]> get(CertStatusRequestType type,
> CertStatusRequest request, X509Certificate[] chain, long delay,
> TimeUnit unit) {
>
> As the exception is a checked-exception, and is not declared in the method,
> it is safe to remove the throws spec.
>
> Cleanup only, no new regression test.
>
> Bug: https://bugs.openjdk.java.net/browse/JDK-8257725
Looks OK to me.
-------------
Marked as reviewed by jnimeh (Reviewer).
PR: https://git.openjdk.java.net/jdk/pull/1607