新增过滤,Private方法不参与跟踪
This commit is contained in:
parent
16aec017d1
commit
d33d622839
|
|
@ -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);
|
||||
// 是否符合规范,符合则增强
|
||||
|
|
|
|||
Loading…
Reference in New Issue