Mercurial > hg4j
comparison src/org/tmatesoft/hg/internal/CommitFacility.java @ 622:4e6179bde4fc
Update to comply with Java 1.5 target
author | Artem Tikhomirov <tikhomirov.artem@gmail.com> |
---|---|
date | Mon, 20 May 2013 16:56:40 +0200 |
parents | 99ad1e3a4e4d |
children | 6526d8adbc0f |
comparison
equal
deleted
inserted
replaced
621:99ad1e3a4e4d | 622:4e6179bde4fc |
---|---|
194 // prepare undo.branch as described in http://mercurial.selenic.com/wiki/FileFormats#undo..2A | 194 // prepare undo.branch as described in http://mercurial.selenic.com/wiki/FileFormats#undo..2A |
195 File branchFile = transaction.prepare(repo.getRepositoryFile(Branch), repo.getRepositoryFile(UndoBranch)); | 195 File branchFile = transaction.prepare(repo.getRepositoryFile(Branch), repo.getRepositoryFile(UndoBranch)); |
196 FileOutputStream fos = null; | 196 FileOutputStream fos = null; |
197 try { | 197 try { |
198 fos = new FileOutputStream(branchFile); | 198 fos = new FileOutputStream(branchFile); |
199 fos.write(newBranchValue.getBytes(EncodingHelper.getUTF8())); | 199 fos.write(newBranchValue.getBytes(EncodingHelper.getUTF8().name())); // XXX Java 1.5 |
200 fos.flush(); | 200 fos.flush(); |
201 fos.close(); | 201 fos.close(); |
202 fos = null; | 202 fos = null; |
203 transaction.done(branchFile); | 203 transaction.done(branchFile); |
204 } catch (IOException ex) { | 204 } catch (IOException ex) { |