On Fri, 7 Oct 2022 15:47:49 GMT, Weijun Wang <[email protected]> wrote:
> Return `this` in various output methods so you can write something like
>
> new DerOutputStream().putInteger(1)
> .putOctetString("12345".getBytes(StandardCharsets.UTF_8))
> .write(AlgorithmId.get("ed25519"))
> .writeImplicit((byte)0x80, new
> DerOutputStream().putUnalignedBitString(ba)).toByteArray();
>
> No regression test. Trivial pure enhancement.
This pull request has now been integrated.
Changeset: 823b53d8
Author: Weijun Wang <[email protected]>
URL:
https://git.openjdk.org/jdk/commit/823b53d8957ff06b66c35e676c25992e9707afe6
Stats: 92 lines in 1 file changed: 26 ins; 19 del; 47 mod
8294987: Streamline DerOutputStream write
Reviewed-by: jnimeh, ascarpino
-------------
PR: https://git.openjdk.org/jdk/pull/10608