-
Notifications
You must be signed in to change notification settings - Fork 295
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
Adding support for Activity and Fragment coming from the support libraries: #275
Adding support for Activity and Fragment coming from the support libraries: #275
Conversation
* Fragment and Activity classes that are coming from the support library and Android X * onCreateView and onAttach for the Fragment
This change looks great, thanks! Is there any way to add a test though? TBH I'm not sure about our existing coverage of these built-in initializers, but it'd be good to get a test going now at least for the new ones. |
4a71c49
to
9b3f7ab
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks fantastic! Once we address the comments we should be good to land. Please remove all the @NonNull
annotations if possible.
...test/resources/com/uber/nullaway/testdata/android-error/AndroidxFragmentWithoutOnAttach.java
Outdated
Show resolved
Hide resolved
nullaway/src/test/java/com/uber/nullaway/NullAwayAndroidTest.java
Outdated
Show resolved
Hide resolved
…t error in the code
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good!
Thank you for contributing to NullAway!
Please note that once you click "Create Pull Request" you will be asked to sign our Uber Contributor License Agreement via CLA assistant.
Before pressing the "Create Pull Request" button, please provide the following:
A description about what and why you are contributing, even if it's trivial.
I noticed that NullAway is not recognising the onCreate method of the Activities and Fragments that are coming from the android support library (and AnddroidX library).
Also for the Fragment it makes sense to support and onCreateView as well as onAttach as those are also like an entry point for the Fragment - in OnCreate we are creating the View and initialising the viewElements.
The issue number(s) or PR number(s) in the description if you are contributing in response to those.
If applicable, unit tests.