[ https://issues.apache.org/jira/browse/IO-809?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17769604#comment-17769604 ]
Gregor Dschung edited comment on IO-809 at 9/27/23 1:29 PM: ------------------------------------------------------------ As the current signature returns void, there shouldn't be any assignments to variables out there. So it wouldn't be a breaking change, or am I overlooking something? UPDATE: Ah, I see, it's a non-final public class, so subclassing would be an issue. But seriously: Who would do that in this case? And as the JavaDoc is stating, that a fluent-api is possible, I think we shouldn't wait for a major version to update the current implementation. was (Author: JIRAUSER302379): As the current signature returns void, there shouldn't be any assignments to variables out there. So it wouldn't be a breaking change, or am I overlooking something? > MessageDigestCalculatingInputStream Builder Not Working > ------------------------------------------------------- > > 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: 3.x > > 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)