I am wondering if you folks have plans to include annotations for changing default accessibility of all members of a class. Something like -@DefaultScope(methods=private, variables=private)class {int a;String s;public Date d;}This would have two advantages -
- Makes code concise as you don't have to append private in front of every member. For classes with 50-70 members that makes a lot of difference.
- Good practice. You don't expose your variables by mistake. This is the OSGi approach. Everything is private unless explicitly specified.
--What are your thoughts on this?
You received this message because you are subscribed to the Google Groups "Project Lombok" group.
To unsubscribe from this group and stop receiving emails from it, send an email to project-lombo...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Already exists: @lombok.experimental.FieldDefaults