Is it possible to add @Builder and @AllArgsConstructor in static inner classes [Lombok]?

≯℡__Kan透↙ 提交于 2020-07-21 05:56:09

问题


Basically, the question is if it is possible to add Lombok's @Builder and @AllArgsConstructor to static inner classes?

I tried and it didn't, does anyone knows how to do it, or if it's possible?

I used eclipse, Lombok version 1.18.4.

The code where this happened is confidential, hence I can only show you a little mask version.

error: constructor A in class A cannot be applied to given types;
[ERROR] required: Map<String,B>,String,boolean
[ERROR] found: no arguments
[ERROR] reason: actual and formal argument lists differ in length

A similar error appears for each static inner class, as well as the outer class.

Thanks

来源:https://stackoverflow.com/questions/53342982/is-it-possible-to-add-builder-and-allargsconstructor-in-static-inner-classes

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!