comparison src/org/tmatesoft/hg/internal/WinToNixPathRewrite.java @ 423:9c9c442b5f2e

Major refactoring of exception handling. Low-level API uses RuntimeExceptions, while checked are left for higher level
author Artem Tikhomirov <tikhomirov.artem@gmail.com>
date Fri, 23 Mar 2012 22:51:18 +0100
parents 0f5696623512
children
comparison
equal deleted inserted replaced
422:5d1cc7366d04 423:9c9c442b5f2e
20 20
21 /** 21 /**
22 * Translate windows path separators to Unix/POSIX-style 22 * Translate windows path separators to Unix/POSIX-style
23 * 23 *
24 * @author Artem Tikhomirov 24 * @author Artem Tikhomirov
25 * @author Tmate Software Ltd. 25 * @author TMate Software Ltd.
26 */ 26 */
27 public final class WinToNixPathRewrite implements PathRewrite { 27 public final class WinToNixPathRewrite implements PathRewrite {
28 public CharSequence rewrite(CharSequence p) { 28 public CharSequence rewrite(CharSequence p) {
29 // TODO handle . and .. (although unlikely to face them from GUI client) 29 // TODO handle . and .. (although unlikely to face them from GUI client)
30 String path = p.toString(); 30 String path = p.toString();