-
Notifications
You must be signed in to change notification settings - Fork 110
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Package visibility does not check inner classes #158
Comments
I have a first version for this, but that creates follow-up problems/questions with the method visibility checks.
Making A similar issue appears in https://github.com/spring-projects/spring-boot/blob/a66c4d3096877b33119366ea9ea165c892b462c8/spring-boot-project/spring-boot-test/src/test/java/org/springframework/boot/test/mock/mockito/SpyBeanWithAopProxyTests.java#L87
I wonder if we should extend the MethodVisibilityChecks to check for some more annotations, but that might be cumbersome. I've only checked a couple of modules so far, but I suspect more problems with some of the tests that do serialization and make use of inner classes and don't have any annotation, so the only option there would be to suppress the checks. What do you think? Cheers, |
I seem to remember we had a few of those in the past and the only option was to exclude them from checkstyle. Perhaps it's best if we leave things alone for now. |
See spring-projects/spring-boot#19395
The text was updated successfully, but these errors were encountered: