Conversation
|
Thanks for your pull request. It looks like this may be your first contribution to a Google open source project (if not, look below for help). Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). 📝 Please visit https://cla.developers.google.com/ to sign. Once you've signed (or fixed any issues), please reply here with What to do if you already signed the CLAIndividual signers
Corporate signers
ℹ️ Googlers: Go here for more info. |
1 similar comment
|
Thanks for your pull request. It looks like this may be your first contribution to a Google open source project (if not, look below for help). Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). 📝 Please visit https://cla.developers.google.com/ to sign. Once you've signed (or fixed any issues), please reply here with What to do if you already signed the CLAIndividual signers
Corporate signers
ℹ️ Googlers: Go here for more info. |
|
@googlebot I signed it! |
|
CLAs look good, thanks! ℹ️ Googlers: Go here for more info. |
1 similar comment
|
CLAs look good, thanks! ℹ️ Googlers: Go here for more info. |
|
@jbw0033 Is there anything I can add to this PR? |
I deleted whitespaces. When I run |
|
Thank you for the pull request! |
…ence too ## Proposed Changes - Fix NonNullableMutableLiveDataDetector for [different cases](https://issuetracker.google.com/issues/184830263). It is possible to only set type reference and omit call's generic argument. - Added check for generic values because default upper bound of generic (if none specified) is Any?. If generic is not specified as `<T : Any>`, `T` can be defined null at call site. https://kotlinlang.org/docs/generics.html#upper-bounds ## Testing Test: Run NonNullableMutableLiveDataDetectorTest with new edge cases. `nullLiteralFailMultipleFields` : Added type reference `justKotlinObject` : Add additional test to prevent ArrayIndexOutOfBoundsException. It is fixed in androidx@1ebd7bc but not tested. It is reported here with [b/184830262](https://issuetracker.google.com/issues/184830262) `genericParameterDefinition` : Generics are assumed as nullable, lint should ignore. ## Issues Fixed Fixes: The bug on [b/184830263](https://issuetracker.google.com/issues/184830263) being fixed Fixes: Tests [b/184830262](https://issuetracker.google.com/issues/184830263) This is an imported pull request from androidx#161. Resolves JetBrains#161 Github-Pr-Head-Sha: e96b4a8 GitOrigin-RevId: eb21c2e Change-Id: Id6cd01e9ec6b79a3f14b569b53d79627c79b9866
Proposed Changes
<T : Any>,Tcan be defined null at call site. https://kotlinlang.org/docs/generics.html#upper-boundsTesting
Test: Run NonNullableMutableLiveDataDetectorTest with new edge cases.
nullLiteralFailMultipleFields: Added type referencejustKotlinObject: Add additional test to prevent ArrayIndexOutOfBoundsException. It is fixed in 428f0ec but not tested. It is reported here with b/184830262genericParameterDefinition: Generics are assumed as nullable, lint should ignore.Issues Fixed
Fixes: The bug on b/184830263 being fixed
Fixes: Tests b/184830262