remove after method

This commit is contained in:
Looly 2020-10-21 13:47:28 +08:00
parent f0399a72ad
commit 5610878324
2 changed files with 1 additions and 18 deletions

View File

@ -13,6 +13,7 @@
* 【core 】 修复ChineseDate没有忽略时分秒导致计算错误问题issue#I1YW12@Gitee
* 【core 】 修复FileUtil中copyFile方法断言判断参数传递错误issue#I1Z2NY@Gitee
* 【core 】 修复BeanDesc读取父类属性覆盖子类属性导致的问题pr#1175@Github
* 【aop 】 修复SimpleAspect一个重载导致的问题去掉重载的after方法issue#I1YUG9@Gitee
-------------------------------------------------------------------------------------------------------------

View File

@ -18,24 +18,6 @@ public class SimpleAspect implements Aspect, Serializable {
return true;
}
/**
* 目标方法执行后的操作
* 如果 target.method 抛出异常且
*
* @param target 目标对象
* @param method 目标方法
* @param args 参数
* @return 是否允许返回值接下来的操作
* @see Aspect#afterException 返回true,则不会执行此操作
* 如果
* @see Aspect#afterException 返回false,则无论target.method是否抛出异常均会执行此操作
*/
public boolean after(Object target, Method method, Object[] args) {
//继承此类后实现此方法
return after(target, method, args, null);
}
@Override
public boolean after(Object target, Method method, Object[] args, Object returnVal) {
//继承此类后实现此方法