comparison src/org/tmatesoft/hg/repo/HgWorkingCopyStatusCollector.java @ 246:ff4fdbab4e2d

Close file streams
author Artem Tikhomirov <tikhomirov.artem@gmail.com>
date Thu, 11 Aug 2011 05:12:13 +0200
parents 4817d4ccc50e
children 3fbfce107f94
comparison
equal deleted inserted replaced
245:2fb439375ddc 246:ff4fdbab4e2d
377 while (fc.read(fb) != -1 && check.sameSoFar()) { 377 while (fc.read(fb) != -1 && check.sameSoFar()) {
378 fb.flip(); 378 fb.flip();
379 filters.write(fb); 379 filters.write(fb);
380 fb.compact(); 380 fb.compact();
381 } 381 }
382 fis.close();
382 return check.ultimatelyTheSame(); 383 return check.ultimatelyTheSame();
383 } catch (IOException ex) { 384 } catch (IOException ex) {
384 if (fis != null) { 385 if (fis != null) {
385 fis.close(); 386 fis.close();
386 } 387 }