Mercurial > hg4j
diff test/org/tmatesoft/hg/test/StatusOutputParser.java @ 292:a415fe296a50
Refactor PathRewrite to accept any char sequence, not only string
author | Artem Tikhomirov <tikhomirov.artem@gmail.com> |
---|---|
date | Wed, 14 Sep 2011 02:16:19 +0200 |
parents | d5268ca7715b |
children | 12f668401613 |
line wrap: on
line diff
--- a/test/org/tmatesoft/hg/test/StatusOutputParser.java Wed Sep 14 02:12:47 2011 +0200 +++ b/test/org/tmatesoft/hg/test/StatusOutputParser.java Wed Sep 14 02:16:19 2011 +0200 @@ -48,10 +48,10 @@ private final boolean winPathSeparator = File.separatorChar == '\\'; - public String rewrite(String s) { + public CharSequence rewrite(CharSequence s) { if (winPathSeparator) { // Java impl always give slashed path, while Hg uses local, os-specific convention - s = s.replace('\\', '/'); + s = s.toString().replace('\\', '/'); } return s; }