-
Notifications
You must be signed in to change notification settings - Fork 284
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
'android.app.Activity.onCreate' not recognized as an initializer in test code #19
Comments
Hi, Currently, initializers are passed to Null Away through the |
To be clear, this is a bug report, as the wiki states that this case is already supported - https://github.com/uber/NullAway/wiki/Error-Messages. If these aren't actually implemented yet, we should probably say so in the wiki :) |
- One can pass the full name of initializer annotations with `-XepOpt:NullAway:CustomInitializerAnnotations. These will be acknowledged, as well as any annotation with @Initializer as its simple name. - Provide sane defaults for this option and for `-XepOpt:NullAway:KnownInitializers=`, to match what we say in the wiki. - Make org.junit.Before and org.junit.BeforeClass default initializer annotations. - This fixes issues #18 and #19.
Oh, right, I see what happened there. That documentation was copied from our internal wiki and is currently true for our internal configuration, not a default install of Null Away. But, well, it should be. So lets treat this as a proper bug and fix the code rather than the wiki :) |
- One can pass the full name of initializer annotations with `-XepOpt:NullAway:CustomInitializerAnnotations. These will be acknowledged, as well as any annotation with @Initializer as its simple name. - Provide sane defaults for this option and for `-XepOpt:NullAway:KnownInitializers=`, to match what we say in the wiki. - Make org.junit.Before and org.junit.BeforeClass default initializer annotations. - This fixes issues #18 and #19.
Fixed on master. Is the workaround viable until the next release? |
Yeah no rush, it was just in a test so I've suppressed it for now |
Repro case in uber/AutoDispose#85 in
AutoDisposeTestActivity
The text was updated successfully, but these errors were encountered: