On Tue, 30 Mar 2021 16:34:45 GMT, Weijun Wang <wei...@openjdk.org> wrote:
>> src/java.xml.crypto/share/classes/javax/xml/crypto/dsig/spec/RSAPSSParameterSpec.java >> line 89: >> >>> 87: * >>> 88: * @param spec the input {@code PSSParameterSpec} to be encapsulated >>> 89: */ >> >> Should this throw NPE if spec is null? > > I currently throw one. Do I need to mention it in the spec? Yes, unless it is specified more generally somewhere else in the API. (Ex: "all methods that take parameters with a `null` value throw `NullPointerException` unless otherwise specified"). ------------- PR: https://git.openjdk.java.net/jdk/pull/3181