提交 d33d6228 编写于 作者: Z zhangxin10

新增过滤,Private方法不参与跟踪

上级 16aec017
......@@ -110,6 +110,11 @@ public class TracingEnhanceProcessor implements DisposableBean,
// 拷贝所有的方法,并增强
ConstPool cp = ctDestination.getClassFile().getConstPool();
for (CtMethod m : ctSource.getDeclaredMethods()) {
if (m.getModifiers() == Modifier.PRIVATE){
continue;
}
CtMethod newm = CtNewMethod.delegator(m, ctDestination);
copyMethodAnnotation(cp, m, newm);
// 是否符合规范,符合则增强
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册