Inspectopedia 2025.1 Help

AOP

Advice parameters (argNames, returning, throwing) consistency check  

Reports if an @AspectJ argNames attribute value does not correspond to the actual method parameter name.

Around advice style inspection  

When using @Around advice, remember two things: Calling org.aspectj.lang.ProceedingJoinPoint#proceed is necessary, otherwise the call won't reach the target.

Introductions (declare parents) errors  

Reports @AspectJ Introduction inconsistency: it checks whether the defaultImpl is required and if yes, whether it implements the given interface.

Pointcut expression errors  

Reports issues in AOP pointcut expressions.

Pointcut method style  

Validates @Pointcut methods: the void return type, no throws clause, and an empty method body.

Warning: argNames not defined  

Reports if an argNames attribute is not defined in an @AspectJ annotation.

01 April 2025