Shawn O. Pearce
c581672557
Ensure RawText closes the FileInputStream when read is complete
Rather than implementing the file reading logic ourselves, and wind up leaking the FileInputStream's file descriptor until the next GC, use IO.readFully(File) which wraps the read loop inside of a try/finally to ensure the stream is closed before it exits. Change-Id: I85a3fe87d5eff88fa788962004aebe19d2e91bb4 Signed-off-by: Shawn O. Pearce <spearce@spearce.org> Reviewed-by: Roland Grunberg <rgrunber@redhat.com> |
14 yıl önce | |
---|---|---|
.. | ||
DiffFormatter.java | Add javadoc comments, remove unused code, shift comments to correct place | 14 yıl önce |
Edit.java | Initial JGit contribution to eclipse.org | 14 yıl önce |
EditList.java | Initial JGit contribution to eclipse.org | 14 yıl önce |
MyersDiff.java | Add javadoc comments, remove unused code, shift comments to correct place | 14 yıl önce |
RawText.java | Ensure RawText closes the FileInputStream when read is complete | 14 yıl önce |
Sequence.java | Remove trailing whitespace at end of line | 14 yıl önce |