Lombok注解的类在eclipse下寻找getter/setter调用的办法

星期一, 2020-11-02 | Author: Lee | JAVA-and-J2EE | 2,688 views

现在用Lombok已经是很普遍了,这里不去争好不好用,只解决个人遇到的不方便之处.

stackoverflow上对应的解决方法原文地址:

https://stackoverflow.com/questions/42644923/eclipse-with-lombok-search-for-getter-and-setter-usages

1.在面板处开启 outline 的选项,可以看到对应的 get和set方法,已经支持 @Setter 和@Getter 、@Data注解

2.右键 选择 “Open Call Hierarchy” 即可看到调用的情况

3.图示如下:

Right-click on the method in the Outline view, and use “Open Call Hierarchy”.

An other way to do it is to right-click on the annotation (@Setter for instance), and use “Open Call Hierarchy” on it

Tags:

文章作者: Lee

本文地址: https://www.pomelolee.com/2120.html

除非注明,Pomelo Lee文章均为原创,转载请以链接形式标明本文地址

No comments yet.

Leave a comment

Search

相关文章

文章分类

Links

Meta