pep1 / kitchenoffice

Gentics Kitchen Office
7 stars 4 forks source link

Introduce lombok to kitchenoffice-data #15

Closed escitalopram closed 8 years ago

escitalopram commented 10 years ago

Project Lombok is a tool which processes java code at compile time using annotations. Its main function is to help removing boilerplate code.

For example: I removed about 600 lines of getter/setter code (and some constructors) from kitchenoffice-data as a demonstration. The getters and setters are now generated automatically and don't clutter the code all over the place.

If you want to know more about project, see http://www.projectlombok.org/

Important: If you use Eclipse, you must integrate Lombok with it, or ecj will puke all over the place. The setup procedure is really simple and described on the Website. With Netbeans or Maven alone it works out of the box.

pep1 commented 10 years ago

Seems like a very interesting tool! Do you use it in other projects? Unfortunately it doesn't seem to work with my Eclipse Kepler installation, it really pukes all over the place... maybe some plugin incompatibility. Investigating...

escitalopram commented 10 years ago

It works for me with Kepler – maybe the installer has no write permissions, when you use it on an eclipse installation from debian packages? Or maybe this helps?: https://groups.google.com/forum/#!topic/project-lombok/UI8uh5QBfnE

I use lombok on my »polygraph« project and on various private projects. I also suggested it to be used in DEV