`
keating
  • 浏览: 169985 次
  • 性别: Icon_minigender_1
  • 来自: weihai
社区版块
存档分类
最新评论

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

    博客分类:
  • Java
阅读更多
--> 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 ?
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics