We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
如果我需要替换的方法是抛异常的,那么就无法替换,或者插入log等。 比如我想创建文件方法前后添加log 方法如下 public boolean createNewFile() throws IOException { SecurityManager security = System.getSecurityManager(); if (security != null) security.checkWrite(path); if (isInvalid()) { throw new IOException("Invalid file path"); } return fs.createFileExclusively(path); }
此时xml配置这样写 void java.io.File.createNewFile() android.util.Log.e("@@@@@","java.io.FilecreateNewFile");
发现无效。
The text was updated successfully, but these errors were encountered:
No branches or pull requests
如果我需要替换的方法是抛异常的,那么就无法替换,或者插入log等。
比如我想创建文件方法前后添加log
方法如下
public boolean createNewFile() throws IOException {
SecurityManager security = System.getSecurityManager();
if (security != null) security.checkWrite(path);
if (isInvalid()) {
throw new IOException("Invalid file path");
}
return fs.createFileExclusively(path);
}
此时xml配置这样写
发现无效。
The text was updated successfully, but these errors were encountered: