@ SuppressWarnings ( "unchecked" ) private boolean isMethodAlreadyInjectedAnnotationPresent ( MethodNode methodNode ) { AnnotationNode injectedTraceAnnotation = getAnnotation ( INJECTED_TRACE_TYPE . getDescriptor ( ) , methodNode . visibleAnnotations ) ; AnnotationNode manualTraceAnnotation = getAnnotation ( MANUAL_TRACE_TYPE . getDescriptor ( ) , methodNode . visibleAnnotations ) ; if ( manualTraceAnnotation != null ) return true ; if ( injectedTraceAnnotation != null ) { InjectedTraceAnnotationVisitor itav = new InjectedTraceAnnotationVisitor ( ) ; injectedTraceAnnotation . accept ( itav ) ; List < String > methodAdapters = itav . getMethodAdapters ( ) ; if ( methodAdapters . contains ( LibertyTracingMethodAdapter . class . getName ( ) ) ) { return true ; } if ( methodAdapters . contains ( WebSphereTrTracingMethodAdapter . class . getName ( ) ) ) { return true ; } if ( methodAdapters . contains ( JSR47TracingMethodAdapter . class . getName ( ) ) ) { return true ; } } return false ; }
Check if the specified method has already been annotated as processed by the trace injection framework .