Bug 31771 - [getter setter] generating boolean getter with the word "has" in front
Summary: [getter setter] generating boolean getter with the word "has" in front
Status: NEW
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 2.1   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: David Audel CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-02-13 09:46 EST by Nikolay Metchev CLA
Modified: 2006-10-06 12:15 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nikolay Metchev CLA 2003-02-13 09:46:06 EST
If you have a field which is a boolean:
e.g:
private boolean hasSomeAttribute;

currantly when you select generate getter/setter for that field the getter that 
gets generated is:

public boolean isHasSomeAttribute(){..}

it would be nice to have the getter generated be

public boolean hasSomeAttribute(){..}
Comment 1 Erich Gamma CLA 2003-02-21 04:54:34 EST
moving to JDT UI
Comment 2 Tobias Widmer CLA 2006-06-19 05:14:07 EDT
This is computed by JDT Core in NamingConventions.

Moving to JDT Core for consideration