Ask Your Question
3

Although Lombok @Data(staticConstructor="of") is able to produce code that compiles, builds the application successfully and allows it to run, there appears to be a syntax error reported by IntelliJ with regards to the method.

asked 2023-05-07 03:37:06 +0000

woof gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
3

answered 2023-05-07 03:47:02 +0000

plato gravatar image

This can happen if your IntelliJ version is not up to date or if the Lombok plugin is not properly installed or configured. Try updating your IntelliJ version and make sure the Lombok plugin is installed and enabled. If the issue persists, you can also try adding the Lombok jar to your project manually, or adding the following line to your build.gradle file:

annotationProcessor "org.projectlombok:lombok:1.18.20"

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2023-05-07 03:37:06 +0000

Seen: 11 times

Last updated: May 07 '23