You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Gary D. Gregory (Jira)" <ji...@apache.org> on 2023/10/20 12:50:00 UTC
[jira] [Resolved] (IO-809) MessageDigestCalculatingInputStream Builder is not 100% fluent
[ https://issues.apache.org/jira/browse/IO-809?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Gary D. Gregory resolved IO-809.
--------------------------------
Fix Version/s: 2.15.0
(was: 3.x)
Resolution: Fixed
> MessageDigestCalculatingInputStream Builder is not 100% fluent
> --------------------------------------------------------------
>
> Key: IO-809
> URL: https://issues.apache.org/jira/browse/IO-809
> Project: Commons IO
> Issue Type: Bug
> Affects Versions: 2.12.0, 2.13.0
> Reporter: Jeremias Eppler
> Priority: Major
> Fix For: 2.15.0
>
> Attachments: commons-io-issue.png
>
>
> I am currently trying to use the MessageDigestCalculatingInputStream Builder. However, the setters of the builder do not return the builder.
> Meaning, this code does not work:
>
> ~~~java
> MessageDigestCalculatingInputStream messageDigestInputStream = MessageDigestCalculatingInputStream.builder()
> .setInputStream(fileInputstream)
> .setMessageDigest(digest)
> .get();
> ~~~
--
This message was sent by Atlassian Jira
(v8.20.10#820010)