mirror of
https://gitee.com/dromara/hutool.git
synced 2025-04-05 17:37:59 +08:00
[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:
parent
f441b319da
commit
090ff7d167
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user