On Mon, 21 Dec 2020 09:16:11 GMT, Andrey Turbanov
<[email protected]> wrote:
>> 8080272 Refactor I/O stream copying to use java.io.InputStream.transferTo
>
> Andrey Turbanov has updated the pull request incrementally with one
> additional commit since the last revision:
>
> 8080272: Refactor I/O stream copying to use java.io.InputStream.transferTo
> revert changes in Apache Santuario
I'm not a reviewer, but still think we could simplify
`sun.security.tools.keytool.Main`
src/java.base/share/classes/sun/security/tools/keytool/Main.java line 2459:
> 2457: byte[] bytes = in.readAllBytes();
> 2458: return
> CertificateFactory.getInstance("X509").generateCRLs(
> 2459: new ByteArrayInputStream(bytes));
Let's just pass `in` into `generateCRLs` instead of reading all bytes and
rewrapping them into `InputStream` again?
-------------
PR: https://git.openjdk.java.net/jdk/pull/1853