Replies: 1 comment 6 replies
-
@micronaut-projects/core-developers thoughts? |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
@sdelamo
@burtbeckwith
Until know we had been using public scope in controller methods and at a class level. @burtbeckwith is suggesting to use package-private for those.
I don't have strong feelings. We can do either way. I had default to
public
because since some of our AOP annotations do not work if the method is private, I did not want users to be tempted to use private.Whatever, we decide we will do through every guide and be consistent.
A) 👍🏻 Controllers with package-private for classes, constructor and HTTP related methods
B) 👎🏻 Controllers with public for classes, constructor and HTTP related methods
C) 🚀 package-private java, internal kotlin, public groovy
Beta Was this translation helpful? Give feedback.
All reactions