Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Are there reasons not to use lombok with android studio

Does anyone know of any reason to not use lombok with android studio? I have POJOs with 60 fields and many important methods. I would rather not litter the files with accessors. My option is to declare the fields public or use lombok. I know how to set it up (How to set up compile library in android studio. LOMBOK). But I don’t want to publish my app and then find out it does not work with some android device simply because of lombok. I am coding agains API-14 and up. Thanks. Also right now I am compiling against API-23, and will keep compiling against whatever is latest.

like image 800
Nouvel Travay Avatar asked Dec 19 '15 00:12

Nouvel Travay


1 Answers

Lombok generates ordinary Java code at compile time, and then it's essentially identical to what your IDE would generate. The Android toolchain won't even know the difference.

like image 117
chrylis -cautiouslyoptimistic- Avatar answered Oct 25 '22 02:10

chrylis -cautiouslyoptimistic-