Suggestion: Getter naming convention

70 views
Skip to first unread message

Nik

unread,
Feb 22, 2016, 7:24:15 AM2/22/16
to Project Lombok
I'd suggest keeping the naming convention provided by Eclipse.
Booleans values should have an 'is' prefix instead of a 'get'

Both versions in comparison:
private boolean flagged;
public boolean isFlagged();
public boolean getFlagged();

Martin Grajcar

unread,
Feb 22, 2016, 9:04:25 AM2/22/16
to project...@googlegroups.com
IIRC Lombok by default follows the stupid Javabeans conventions, i.e., it uses "is" for boolean, but not for Boolean. See also http://stackoverflow.com/questions/18139678/lombok-how-to-customise-getter-for-boolean-object-field and many other such discussions.

--
You received this message because you are subscribed to the Google Groups "Project Lombok" group.
To unsubscribe from this group and stop receiving emails from it, send an email to project-lombo...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages