I don't like this method too much, I can suggest you to use Lombok (http://projectlombok.org/) it's a very interesting and useful tool! With it you can have the same (and many others) benefits with a much cleaner code.
I don't like this method too much, I can suggest you to use Lombok (http://projectlombok.org/) it's a very interesting and useful tool! With it you can have the same (and many others) benefits with a much cleaner code.