Replies: 1 comment 6 replies
|
@micronaut-projects/core-developers thoughts? |
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
@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
publicbecause 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
All reactions