Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[JENKINS-21229] Possible resource leak in parser
- If an exception occurs before the stream is closed there will be a resource leak since close() won't be called. - Solved using try-finally pattern. - Indentation fixed.
- Loading branch information
1 parent
1c05513
commit 22fe900
Showing
1 changed file
with
13 additions
and
8 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