comparison src/org/tmatesoft/hg/internal/DataAccessProvider.java @ 654:12a4f60ea972

1) Console push tool. 2) Pass class to blame into FileUtils
author Artem Tikhomirov <tikhomirov.artem@gmail.com>
date Wed, 03 Jul 2013 15:11:40 +0200
parents 868b2ffdcd5c
children
comparison
equal deleted inserted replaced
653:629a7370554c 654:12a4f60ea972
242 242
243 @Override 243 @Override
244 public void done() { 244 public void done() {
245 buffer = null; 245 buffer = null;
246 if (fileStream != null) { 246 if (fileStream != null) {
247 new FileUtils(logFacility).closeQuietly(fileStream); 247 new FileUtils(logFacility, this).closeQuietly(fileStream);
248 fileStream = null; 248 fileStream = null;
249 fileChannel = null; // channel is closed together with stream 249 fileChannel = null; // channel is closed together with stream
250 } 250 }
251 } 251 }
252 } 252 }
373 373
374 @Override 374 @Override
375 public void done() { 375 public void done() {
376 buffer = null; 376 buffer = null;
377 if (fileStream != null) { 377 if (fileStream != null) {
378 new FileUtils(logFacility).closeQuietly(fileStream); 378 new FileUtils(logFacility, this).closeQuietly(fileStream);
379 fileStream = null; 379 fileStream = null;
380 fileChannel = null; 380 fileChannel = null;
381 } 381 }
382 } 382 }
383 } 383 }