Skip to content
Advertisement

What is the difference between AccessLevel.PACKAGE and AccessLevel.MODULE?

In Lombok, what is the actual difference between

JavaScript

and

JavaScript

?

Advertisement

Answer

That is a good question. I tried creating some setters for some test methods and all I got was (decompiled):

JavaScript

So, on first look it appears that there is no difference. So, I looked into the source code and all I could verify is that for the time being they are handled the same (from the source here):

lombok.javac.handlers.JavacHandlerUtil.toJavacModifier(AccessLevel accessLevel) or lombok.eclipse.handlers.EclipseHandlerUtil.toEclipseModifier(AccessLevel accessLevel)

JavaScript

I think that there will be some future work on that for java 9 probably, but for now it appears to be the same.

User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement