-
Notifications
You must be signed in to change notification settings - Fork 6k
Fix java warnings for unchecked conversions in PlayStoreDynamicFeatureManager #22628
Conversation
|
It looks like this pull request may not have tests. Please make sure to add tests before merging. If you need an exemption to this rule, contact Hixie on the #hackers channel in Chat. Reviewers: Read the Tree Hygiene page and make sure this patch meets those guidelines before LGTMing. |
|
|
||
| // Search directly in APKs first | ||
| List<String> apkPaths = new ArrayList(); | ||
| List<String> apkPaths = new ArrayList<String>(); |
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.
Android supports Java 7 now. You should be able to just do https://www.baeldung.com/java-diamond-operator
e.g. new ArrayList<>();
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.
Yep, though I'll clean this up later, let's get the roll through
xster
left a comment
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.
Thanks for quick fix
|
Waiting on seeing if the revert #22645 lands. If so, I'll merge this into the re-land |
Google3 tests require types be specified. This prevents warnings that are otherwise thrown.
Android linter enforces use of SparseArray when mapping between int and objects.