---
title: "以is作为名称开头的属性,它的Getter方法名应该是什么样的?"
author: "keating"
date: "2011-03-21T22:47:49Z"
tags: []
categories: ["编程语言"]
slug: "is-getter"
draft: false
lastmod: "2011-03-21T22:47:49Z"
id: 969999
url: "https://keating.iteye.com/blog/969999"
---

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