This method is dangerous since all ByteSource should provide a new
InputStream on every call to openStream while the method returns the
same InputStream for non-repeatable Payloads.
You can merge this Pull Request by running:

  git pull https://github.com/andrewgaul/jclouds bytestreams2-asbytesource

Or you can view, comment on it, or merge it online at:

  https://github.com/jclouds/jclouds/pull/507

-- Commit Summary --

  * Remove ByteStreams2.asByteSource

-- File Changes --

    M core/src/main/java/org/jclouds/io/ByteStreams2.java (11)
    M core/src/main/java/org/jclouds/io/internal/BasePayloadSlicer.java (3)

-- Patch Links --

https://github.com/jclouds/jclouds/pull/507.patch
https://github.com/jclouds/jclouds/pull/507.diff

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/507

Reply via email to