Why IntelliJ needs Lombok plugin?

后端 未结 3 1532
忘掉有多难
忘掉有多难 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 14:59

    Ale IDEs use lombok plugin be it intelij-idea or eclipse. javac works fine with it - but remember that it works when for example you build you project with mvn clean package. Then when you have your IDE - it works differntly - the code is not processed like in build task.

    The plugin make it know to IDE what is this annotation and what code it generates underhood without need of javac.

提交回复
热议问题