comparison src/org/tmatesoft/hg/internal/FileUtils.java @ 619:868b2ffdcd5c

Close FIS, not FileChannel, to clear both references to FileDescriptor right away
author Artem Tikhomirov <tikhomirov.artem@gmail.com>
date Fri, 17 May 2013 22:04:23 +0200
parents 7c0d2ce340b8
children 507602cb4fb3
comparison
equal deleted inserted replaced
618:7c0d2ce340b8 619:868b2ffdcd5c
32 /** 32 /**
33 * 33 *
34 * @author Artem Tikhomirov 34 * @author Artem Tikhomirov
35 * @author TMate Software Ltd. 35 * @author TMate Software Ltd.
36 */ 36 */
37 final class FileUtils { 37 public final class FileUtils {
38 38
39 private final LogFacility log; 39 private final LogFacility log;
40 40
41 public static void copyFile(File from, File to) throws HgIOException { 41 public static void copyFile(File from, File to) throws HgIOException {
42 new FileUtils(new StreamLogFacility(Debug, true, System.err)).copy(from, to); 42 new FileUtils(new StreamLogFacility(Debug, true, System.err)).copy(from, to);