Uploaded image for project: 'Commons IO'
  1. Commons IO
  2. IO-809

MessageDigestCalculatingInputStream Builder is not 100% fluent

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.12.0, 2.13.0
    • 2.15.0
    • None
    • None

    Description

      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();

      ~~~

      Attachments

        1. commons-io-issue.png
          18 kB
          Jeremias Eppler

        Activity

          People

            Unassigned Unassigned
            jeppler Jeremias Eppler
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: