Inspectopedia Help

Code

@Cacheable self-invocation method calls  

Using @Cacheable: In proxy mode (which is the default), only external method calls coming in through the proxy are intercepted.

@Configuration proxyMethods usage warnings  

Reports warnings on incorrectly used proxy methods.

@Required Spring bean property is not injected  

Reports @Required setter bean properties that are not injected or autowired.

@Transactional self-invocation method calls  

Using @Transactional: In proxy mode (which is the default), only external method calls coming in through the proxy are intercepted.

Cache* annotations defined on interfaces/interface methods  

Reports @Cache* annotations on interfaces.

Incorrect @Async method signature  

Reports incorrect return types of @Async methods.

Incorrect @Scheduled method signature  

Reports incorrect @Scheduled methods.

Incorrect Spring component autowiring or injection on a static class member  

Reports autowired and injected static methods/fields of Spring components.

Incorrect autowiring in Spring bean components  

Reports autowiring problems on injection points of Spring beans @Component, @Service, and so on.

Incorrect required cache names definition  

Reports incorrect @Cache* annotation names.

Incorrect usage of @CachePut and @Cacheable on the same method  

Reports @CachePut and @Cacheable annotations declared on the same method.

Incorrectly configured @EventListener methods  

Reports incorrect @EventListener methods.

Incorrectly configured 'caching' annotation  

Reports incorrect 'caching' annotations: @Cacheable, @CacheEvict, @CachePut, @CacheConfig, and so on.

Incorrectly configured @Profile expression  

Reports incorrect @Profile expressions:.

Incorrectly referenced bean in @DependsOn annotation  

Reports incorrect bean references in the value parameter of the @DependsOn annotation.

Incorrectly referenced bean in @Lookup annotation of Spring component  

Reports incorrect bean references in the value parameter of the @Lookup annotation.

Incorrectly referenced bean in @Scheduled annotation  

Reports incorrect bean references in the scheduler parameter of the @Scheduled annotation.

Invalid 'PlatformTransactionManager' declaration in @Transactional component  

Reports PlatformTransactionManager classes that are not correctly defined in the application context for the current @Transactional component.

Invalid @ContextConfiguration  

Reports incorrect Spring context configurations.

Invalid @DirtiesContext 'mode' configuration  

Reports incorrect 'mode' configuration in the @DirtiesContext annotation.

Invalid @Sql and @SqlGroup configurations  

Reports unresolved file references in the scripts attributes of the @Sql annotation and the corresponding aliased attributes of the @Sql meta annotations.

Invalid package in @ComponentScan or its meta annotation  

Reports unresolved packages in @ComponentScan annotations and corresponding aliased attributes of @ComponentScan meta annotations.

Invalid transactional lifecycle method declaration  

Reports invalid transactional lifecycle method declarations annotated with @BeforeTransaction and @AfterTransaction in testing classes annotated as @Transactional.

Non recommended 'field' injections  

Reports injected or autowired fields in Spring components.

Unknown init/destroy method in the @Bean annotation  

Reports unresolved method references on initMethod and destroyMethod parameters of the @Bean annotation.

Unresolved file references in @ImportResource locations  

Reports unresolved files and directories in locations attributes of @ImportResource annotations and the corresponding aliased attributes of the @ImportResource meta annotations.

Unresolved file references in @PropertySource and @TestPropertySource locations  

Reports unresolved files or directories in @PropertySource and @TestPropertySource annotations.

Last modified: 18 June 2024