Inspectopedia Help

Unresolved cache annotation parameter reference

Reports Micronaut Cache annotations where the value of the parameters attribute contains names of undefined method parameters.

The following annotations are supported:

  • io.micronaut.cache.annotation.Cacheable

  • io.micronaut.cache.annotation.CachePut

  • io.micronaut.cache.annotation.CacheInvalidate

Example:

@CachePut(parameters = "myParameter") // Error: Cannot resolve symbol 'myParameter' public String cachedMethod(String name_is_not_equal_to_myParameter) { return "..."; }

Locating this inspection

By ID

Can be used to locate inspection in e.g. Qodana configuration files, where you can quickly enable or disable it, or adjust its settings.

MnCacheAnnotationParameters
Via Settings dialog

Path to the inspection settings via IntelliJ Platform IDE Settings dialog, when you need to adjust inspection settings directly from your IDE.

Settings or Preferences | Editor | Inspections | Micronaut

Availability

By default bundled with

IntelliJ IDEA 2024.1, Qodana for JVM 2024.1,

Can be installed with plugin

Micronaut, 241.18072

Last modified: 18 June 2024