-
Notifications
You must be signed in to change notification settings - Fork 22
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
Make internals private? #129
Comments
I think it is protected because of a limitation of unit testing that cannot test private methods. It could probably be hidden with a refactoring of the unit test? |
Using reflection would be an alternative way to test a private method. If it must be tested. |
Yep, despite I agree that testability justifies not optimal design choices, either we are more flexible in compatibility breaking changes or more careful in using it. |
merged into main with PR #133 |
aws-java-nio-spi-for-s3/src/main/java/software/amazon/nio/spi/s3/S3FileSystemProvider.java
Line 326 in 20c8e9c
Given that when we have a protected member we want to pay extra attention to the stability of the interface, which makes the codebase more difficult to refactor, would it make sense to make this private?
The text was updated successfully, but these errors were encountered: