https://kotlinlang.org logo
#intellij
Title
# intellij
r

Rob Elliot

11/26/2020, 10:12 AM
Niche, this, but IntelliJ is giving me “Could not autowire” inspection errors in a Spring Boot app when I have a class annotated as
@Component
where the constructor has arguments with default values. Because it has default values it can actually start up just fine, but I’d rather not have the red squiggles. And the suppression annotation is verbose. I could just disable the inspection entirely, but I’d rather IntelliJ was clever enough to know it isn’t a problem.
(The arguments are for test - things like
clock: Clock = Clock.systemUTC
)