|
|||||||||
|
Submit Links |
Latest Links
| Login
(want to submit links for DLinks? send a mail to krishnas@javabeat.net)
getter and setter generation with annotationssubmited by krishnas on Thu Sep 30th, 2010 I discovered lombok which uses annotations to generate getters and setters. http://projectlombok.org/index.html Is this recommended? Another question is: Is it better to make all the fields which should be accessed by other objects public and access fields instead of getters/setters - encapsulation is therefore secured? So I do not need to write that boilerplate code an do not need something like lombok.Topic: java |
|||||||||
|
|||||||||