-
Notifications
You must be signed in to change notification settings - Fork 6.1k
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
[Glide 4.0.0-RC0][Lint] - Error: This method should only be accessed from tests or within private scope [VisibleForTests] Glide.tearDown(); #1977
Comments
What version of android are you targeting/compiling against? I don't see this lint error. I'll add a suppression anyway, but if you give me the version info I can try to verify it actually works. |
Compile/Target - API 25 |
Same here, but I don't see the lint errors in the sample apps. Out of curiosity, if you add @VisibleForTesting manually to those generated classes, do you still see the lint error? |
Here is a trimmed down version of the the android gradle DSL. I am using
|
@sjudd I don't think |
Can you just suppress all?
…On May 31, 2017 7:51 AM, "Róbert Papp" ***@***.***> wrote:
@sjudd <https://github.com/sjudd> I don't think @VisibleForTesting is
transitive; just because a method is visible for testing, it doesn't
warrant it to call other methods that are visible for testing.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#1977 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABqMSJtK4d7SzruVVWGMNixR3bmYjpvAks5r_X5SgaJpZM4Nq7oQ>
.
|
@jaredsburrows I don't think that's a good idea. That may hide bugs that are uncovered by lints implemented in the future. You can always add an external suppression in |
I understand. Then just suppress "visiblefortesting".
…On May 31, 2017 8:01 AM, "Róbert Papp" ***@***.***> wrote:
@jaredsburrows <https://github.com/jaredsburrows> I don't think that's a
good idea. That may hide bugs that are uncovered by lints implemented in
the future.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1977 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABqMSMTH1B_FVS3_jHmYt3QNZGnYB3f2ks5r_YDCgaJpZM4Nq7oQ>
.
|
@TWiStErRob I am suppressing this via lint now but I should not have to. This is a problem introduced by 4.0. |
yes, 4.0 is RC, Sam's ironing the kinks out, annotation processing is quite a new component of Glide, and since RC more people seem to be using it than alpha, so there're more issues coming up. |
@TWiStErRob Yeah. So far it's great. I am just trying to help iron out these issues by reporting issues that I am finding! You guys always answer fast and are great help! |
@sjudd Thanks! |
Auto generated code is causing lint issues:
The text was updated successfully, but these errors were encountered: