[hg] rename according to code conventions and simplify

This commit is contained in:
Kirill Likhodedov
2012-12-27 19:26:34 +04:00
parent 9c607d6602
commit 5683767a77
2 changed files with 3 additions and 3 deletions
@@ -61,6 +61,6 @@ public final class HgErrorUtil {
if (StringUtil.isEmptyOrSpaces(destinationPath)) {
return false;
}
return HgUtil.reposirotyUrlWithPasswordPattern.matcher(destinationPath).matches();
return HgUtil.URL_WITH_PASSWORD.matcher(destinationPath).matches();
}
}
@@ -47,7 +47,7 @@ import java.util.regex.Pattern;
*/
public abstract class HgUtil {
public static final Pattern reposirotyUrlWithPasswordPattern = Pattern.compile("(.+):(.+)@(.+)");
public static final Pattern URL_WITH_PASSWORD = Pattern.compile("(.+):(.+)@(.+)");
public static final int MANY_FILES = 100;
private static final Logger LOG = Logger.getInstance(HgUtil.class);
@@ -477,7 +477,7 @@ public abstract class HgUtil {
}
public static String removePasswordIfNeeded(@NotNull String path) {
Matcher matcher = reposirotyUrlWithPasswordPattern.matcher(path);
Matcher matcher = URL_WITH_PASSWORD.matcher(path);
if (matcher.matches()) {
return matcher.group(1) + "@" + matcher.group(3);
}