Inspectopedia 2024.3 Help

Code

@Cacheable self-invocation method calls   New in this release

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

@Configuration proxyMethods usage warnings   New in this release

Reports warnings on incorrectly used proxy methods.

@Required Spring bean property is not injected   New in this release

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

@Transactional self-invocation method calls   New in this release

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   New in this release

Reports @Cache* annotations on interfaces.

Incorrect @Async method signature   New in this release

Reports incorrect return types of @Async methods.

Incorrect @Scheduled method signature   New in this release

Reports incorrect @Scheduled methods.

Incorrect Spring component autowiring or injection on a static class member   New in this release

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

Incorrect autowiring in Spring bean components   New in this release

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

Incorrect required cache names definition   New in this release

Reports incorrect @Cache* annotation names.

Incorrect usage of @CachePut and @Cacheable on the same method   New in this release

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

Incorrectly configured @EventListener methods   New in this release

Reports incorrect @EventListener methods.

Incorrectly configured 'caching' annotation   New in this release

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

Incorrectly configured @Profile expression   New in this release

Reports incorrect @Profile expressions:.

Incorrectly referenced bean in @DependsOn annotation   New in this release

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

Incorrectly referenced bean in @Lookup annotation of Spring component   New in this release

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

Incorrectly referenced bean in @Scheduled annotation   New in this release

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

Invalid 'PlatformTransactionManager' declaration in @Transactional component   New in this release

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

Invalid @ContextConfiguration   New in this release

Reports incorrect Spring context configurations.

Invalid @DirtiesContext 'mode' configuration   New in this release

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

Invalid @Sql and @SqlGroup configurations   New in this release

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   New in this release

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

Invalid transactional lifecycle method declaration   New in this release

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

Non recommended 'field' injections   New in this release

Reports injected or autowired fields in Spring components.

Unknown init/destroy method in the @Bean annotation   New in this release

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

Unresolved file references in @ImportResource locations   New in this release

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   New in this release

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

Last modified: 11 September 2024