commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From venkatesha m <ts_v_mur...@yahoo.com.INVALID>
Subject [MATH] Introduce Lombok annotations into apache commons
Date Wed, 18 Jun 2014 19:40:54 GMT
Hi,

I would like to understand if there are any concerns regarding introducing annotation libraries
such as lombok(http://projectlombok.org/) to commons-math .
The most advantages i have seen using it are as follows:

a) A majority of code drudge such as equals, hashcode, getter and setter can be had with @Data
(with automatic static creation method)
b) The simple buty is you could set default access of variables as private final so idont
need to write private final at every place.
b) One could use @Builder annotation to automate the builder methods 
c) @val and @sneakythrows are really cool
d) @synchonized lays out best practice of locking on new Object etc
e) @Log4j and log4j2 annotations doent need log variable declaration
f) Error messages is another beauty

Most code drudge is out with this. I feel immensely benefited with this.

Please let me know if there are any other commons equivalent for the same if not please let
know for any concerns on using these libs

thanks
venkat

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org


Mime
View raw message