Merge pull request #1618 from cal101/erefactor/v5-dev-project/1/jdt/jdt-ReplaceRegexpWithPlainReplaceCleanUp

[cleanup] erefactor/EclipseJdt - Replace regular expression replace w…
This commit is contained in:
Golden Looly 2021-06-06 07:54:40 +08:00 committed by GitHub
commit b274f59ae4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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);