On Fri, 12 Aug 2022 17:41:16 GMT, Kevin Driver <kdri...@openjdk.org> wrote:

> add @exception message to indicate an NPE might be thrown when the input 
> parameter is null

src/java.base/share/classes/javax/crypto/MacSpi.java line 105:

> 103:      * @param input the ByteBuffer
> 104:      *
> 105:      * @exception NullPointerException if {@code input} is null

nit: I recall @throws is preferred.

How about the update(...) methods in javax.crypto.Mac class? Perhaps the NPE 
there should be documented as well?

-------------

PR: https://git.openjdk.org/jdk/pull/9859

Reply via email to