Mercurial > jhg
comparison src/org/tmatesoft/hg/repo/HgChangelog.java @ 418:528b6780a8bd
A bit of FIXME cleanup (mostly degraded to TODO post 1.0), comments and javadoc
author | Artem Tikhomirov <tikhomirov.artem@gmail.com> |
---|---|
date | Thu, 22 Mar 2012 21:02:20 +0100 |
parents | 73e875154afb |
children | 7f136a3fa671 |
comparison
equal
deleted
inserted
replaced
417:ccd7d25e5aea | 418:528b6780a8bd |
---|---|
1 /* | 1 /* |
2 * Copyright (c) 2010-2011 TMate Software Ltd | 2 * Copyright (c) 2010-2012 TMate Software Ltd |
3 * | 3 * |
4 * This program is free software; you can redistribute it and/or modify | 4 * This program is free software; you can redistribute it and/or modify |
5 * it under the terms of the GNU General Public License as published by | 5 * it under the terms of the GNU General Public License as published by |
6 * the Free Software Foundation; version 2 of the License. | 6 * the Free Software Foundation; version 2 of the License. |
7 * | 7 * |
323 breakIndex4--; | 323 breakIndex4--; |
324 } | 324 } |
325 String _comment; | 325 String _comment; |
326 try { | 326 try { |
327 _comment = new String(data, breakIndex4 + 2, bufferEndIndex - breakIndex4 - 2, "UTF-8"); | 327 _comment = new String(data, breakIndex4 + 2, bufferEndIndex - breakIndex4 - 2, "UTF-8"); |
328 // FIXME respect ui.fallbackencoding and try to decode if set | 328 // TODO post-1.0 respect ui.fallbackencoding and try to decode if set; use EncodingHelper |
329 } catch (UnsupportedEncodingException ex) { | 329 } catch (UnsupportedEncodingException ex) { |
330 _comment = ""; | 330 _comment = ""; |
331 // Could hardly happen | 331 // Could hardly happen |
332 throw new HgBadArgumentException("Bad Changeset data", ex); | 332 throw new HgBadArgumentException("Bad Changeset data", ex); |
333 } | 333 } |