Spring-AOP/AspectJ Support: Highlighting of non-public method pointcut expressions
I have a project using Spring-AOP and its support for AspectJ. Assuming that I have the following @Aspect class and @Around pointcut expression:
@Aspect
public class OdeServiceMonitorAspect extends AbstractEngineAdapterAspect {
static final Logger log = LoggerFactory.getLogger(OdeServiceMonitorAspect.class);@Around("execution(* org.apache.axis2.description.OutInAxisOperationClient.send(..))")
public Object interceptAxisSend(ProceedingJoinPoint joinPoint) throws Throwable {
log.trace("Intercepted AXIS send");
MessageContext messageContext = (MessageContext) joinPoint.getArgs()[0];
...
MessageContext responseMessageContext = (MessageContext) joinPoint.proceed();
...
return messageContext;
}
}
where OutInAxisOperationClient.send() has private access. Hence, IntelliJ highlights the pointcut expression. How can I suppress error highlighting of pointcut expressions that match non-public methods (preferably on a per-method basis)? I'm using LTW and therefore instrumentation is not restricted to public methods.
Any clue?
请先登录再写评论。