Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -240,8 +240,9 @@ public InputStream get() {
try (pipedOut) {
virtualActionInput.writeTo(pipedOut);
} catch (IOException e) {
throw new IllegalStateException(
"writeTo is not expected to throw as pipedOut doesn't", e);
// Since VirtualActionInput#writeTo only throws when pipedOut does, this means
// that the reader has closed pipedIn early, perhaps due to interruption. Since
// the reader is gone, there is no way to propagate this exception back.
}
});
return pipedIn;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ ListenableFuture<Void> downloadBlob(
* A supplier for the data comprising a BLOB.
*
* <p>As blobs can be large and may need to be kept in memory, consumers should call {@link #get}
* as late as possible and close the blob as soon as they are done with it.
* as late as possible.
*/
@FunctionalInterface
interface Blob {
Expand Down
Loading