-----Original Message-----
From: Robert Varga [] 
Sent: Friday, October 14, 2016 12:15 PM
To: Sela, Guy <>;;
Subject: Re: [opendaylight-dev] Lombok

On 10/13/2016 10:13 PM, Sela, Guy wrote:
> Hi,
> Did anyone consider adding Lombok into ODL?
> to-reduce-boilerplate-code-in-java/

Not seriously, no. There are three main reasons:

1) for inter-component interactions we use YANG and hence have an equivalent 
for getters/builders/hashCode/equals

2) concerns about code readability and learning curve for newcomers

3) it makes performance trade-offs without giving sufficient control.
For example -- that 
AtomicReference is used only as a lock, wasting 16-24 bytes of memory for each 
such field.

Overall it does not look like a mature enough project for the code we have 
evaluated it for (yangtools, mdsal, bgpcep).


controller-dev mailing list

Reply via email to