没有为Lombok getter和setter生成Javadoc [英] Javadoc not generated for Lombok getter and setter

查看:428
本文介绍了没有为Lombok getter和setter生成Javadoc的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在为Lombok获取器和设置器生成Javadoc时遇到问题.我在此处中尝试了这两个建议.示例字段及其文本如下:

I am having a problem with generating Javadoc for Lombok getters and setters. I have tried both suggestions here. An example field and its text are as follows:

/**  
 *  Identifier of the client
 * 
 *  @param clientID changes the id of the client 
 *  @return id of the client
 */
@Getter @Setter private Integer clientID;

但是,我在生成的Javadoc中既看不到getter也不见setter.我在Eclipse上使用受保护"可见性(项目->生成Javadoc ...).我的龙目岛版本是1.12.4.有什么建议?

However, I see neither the getter nor the setter in the generated Javadoc. I am using 'protected' visibility on Eclipse (Project -> Generate Javadoc...). My Lombok version is 1.12.4. Any suggestions?

推荐答案

javadoc功能在Eclipse javadoc视图中或悬停时不起作用.您可以通过在代码上运行 delombok 来生成Javadoc,然后运行Javadoc编译器,如靠近底部的功能页面.

The javadoc feature does not work in the eclipse javadoc view or hovers. You can generate the javadoc by running delombok on the code first and then run the javadoc compiler, as is hinted on the feature page near the bottom.

披露:我是Lombok开发人员.

Disclosure: I am a Lombok developer.

这篇关于没有为Lombok getter和setter生成Javadoc的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆