My class has the following annotations:
@Service
@AllArgsConstructor
@RequiredArgsConstructor(onConstructor_ = @Autowired)
IntelliJ marks the class with the following error (not warning): "Class doesn't contain matching constructor for autowiring"
Regardless of the error the code compiles and runs without the problem.
I found out that the similar issue (although not with Lombok generated contructors) was an IntelliJ bug, but it's been fixed few years ago.
Based on the above I believe it's an IntelliJ issue as well (I'm using 2019.3.4 Ultimate version).
Any idea what can be done to stop this error from occurring?