Skip to content
Advertisement

Lombok causing “Actual and formal arguments lists differ in length error”

I have the following class:

JavaScript

When the @Builder annotation exists, it is causing problems with the @NoArgsConstructor.

I am getting the error:

JavaScript

Advertisement

Answer

Add @AllArgsConstructor as well and this should fix the issue

User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement