RFR: 8294987: Streamline DerOutputStream write [v2]

Weijun Wang weijun at openjdk.org
Fri Oct 7 19:52:15 UTC 2022


> 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.

Weijun Wang has updated the pull request incrementally with one additional commit since the last revision:

  just return

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/10608/files
  - new: https://git.openjdk.org/jdk/pull/10608/files/298f5f20..eeb131d3

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=10608&range=01
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=10608&range=00-01

  Stats: 10 lines in 1 file changed: 0 ins; 5 del; 5 mod
  Patch: https://git.openjdk.org/jdk/pull/10608.diff
  Fetch: git fetch https://git.openjdk.org/jdk pull/10608/head:pull/10608

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



More information about the security-dev mailing list