ITeye博客

以is作为名称开头的属性,它的Getter方法名应该是什么样的?

keating · 2011-03-21 22:47 · Java · 编程语言 · Markdown

--> private String isAbc;

when use eclipse, we can generate getter for the attribute isAbc:

public String getIsAbc() { return isAbc; }

--> private @Getter String isAbc;

when use lombok, I get the getter

public String isAbc() { return isAbc; }

The two getters have different names. I think eclipse is right. Is this a issue of lombok ?

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。