Mercurial > hg4j
changeset 246:ff4fdbab4e2d
Close file streams
author | Artem Tikhomirov <tikhomirov.artem@gmail.com> |
---|---|
date | Thu, 11 Aug 2011 05:12:13 +0200 |
parents | 2fb439375ddc |
children | f052f40839ec |
files | src/org/tmatesoft/hg/internal/RequiresFile.java src/org/tmatesoft/hg/repo/HgWorkingCopyStatusCollector.java |
diffstat | 2 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/org/tmatesoft/hg/internal/RequiresFile.java Thu Jul 14 03:18:37 2011 +0200 +++ b/src/org/tmatesoft/hg/internal/RequiresFile.java Thu Aug 11 05:12:13 2011 +0200 @@ -57,6 +57,7 @@ flags += fncache ? FNCACHE : 0; flags += dotencode ? DOTENCODE : 0; repoImpl.setStorageConfig(revlogv1 ? 1 : 0, flags); + br.close(); } catch (IOException ex) { ex.printStackTrace(); // FIXME log }
--- a/src/org/tmatesoft/hg/repo/HgWorkingCopyStatusCollector.java Thu Jul 14 03:18:37 2011 +0200 +++ b/src/org/tmatesoft/hg/repo/HgWorkingCopyStatusCollector.java Thu Aug 11 05:12:13 2011 +0200 @@ -379,6 +379,7 @@ filters.write(fb); fb.compact(); } + fis.close(); return check.ultimatelyTheSame(); } catch (IOException ex) { if (fis != null) {