Why IntelliJ needs Lombok plugin?

后端 未结 3 1497
忘掉有多难
忘掉有多难 2021-01-12 14:46

As far as I understand, Lombok uses Java\'s Annotation Processors to generate additional methods.

With Maven 3.5 it works perfectly without adding any additional con

3条回答
  •  既然无缘
    2021-01-12 15:19

    IntelliJ's code analysis engine does not use javac or run annotation processors. Instead, IntelliJ uses its own Java parser and reference resolution logic, and builds its own code model. The Lombok plugin extends the code model to provide information about declarations generated by the Lombok annotation processor.

提交回复
热议问题