读书人

以is作为姓名开头的属性,它的Getter方

发布时间: 2012-12-19 14:13:15 作者: rapoo

以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 ?

读书人网 >编程

热点推荐