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


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

Inspection Details

Available in:

IntelliJ IDEA 2023.3, Qodana for JVM 2023.3


Micronaut, 233.SNAPSHOT

Last modified: 13 July 2023