private String temp = null;
public boolean changeWorkingDirectory(String pathname) throws IOException
{
if (StringUtils.isNotBlank(temp)) {
_controlInput_.readLine();
}
temp = null;
return super.changeWorkingDirectory(pathname);
}
复写这个方法
本文介绍了一种复写changeWorkingDirectory方法的实现方式,在特定条件下读取输入行并清空临时变量,最终调用父类方法完成目录切换。
2万+

被折叠的 条评论
为什么被折叠?



