首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > 编程 >

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

2012-12-19 
以is作为名称开头的属性,它的Getter方法名应该是什么样的?-- private String isAbc when use eclipse, w

以is作为名称开头的属性,它的Getter方法名应该是什么样的?
--> 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 ?

热点排行