[cleanup] erefactor/EclipseJdt - Replace regular expression replace with plain replace.

EclipseJdt cleanup 'ReplaceRegexpWithPlainReplace' applied by erefactor.

For EclipseJdt see https://www.eclipse.org/eclipse/news/4.19/jdt.php
For erefactor see https://github.com/cal101/erefactor
This commit is contained in:
cal101 2021-06-05 12:08:42 +00:00
parent f441b319da
commit 090ff7d167

View File

@ -339,7 +339,7 @@ public class Sftp extends AbstractFtp {
return true;
}
try {
channel.cd(directory.replaceAll("\\\\", "/"));
channel.cd(directory.replace('\\', '/'));
return true;
} catch (SftpException e) {
throw new FtpException(e);