-
-
Notifications
You must be signed in to change notification settings - Fork 734
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Proper closing of resources in MessageAction
Added the following methods * clearFiles(Consumer) * clearFiles(BiConsumer) This should allow users to close any of their provided resources, additionally clearFiles() will now close any opened FileInputStreams! I've added a note to the class-level documentation that the execution of MessageAction closes all provided resources. You cannot send the same resource twice without copying it first! closes #660
- Loading branch information
1 parent
aec0f8d
commit b8e7e4e
Showing
1 changed file
with
100 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters