Fixed
Status Update
Comments
di...@google.com <di...@google.com> #2
Some things to work out before making the annotations type-use:
- Determine guidelines for type nullability in public API
- Determine rules for when type nullability can change in public API
- Confirm that intellij nullability lint works as expected for type-use nullability annotations
- Test what the impact would be on existing arrays (due to ambiguities of type-use annotations on arrays)
- Confirm usage of type-use
androidx.annotation.NonNull/Nullable
in metalava won't break anything for platform
Description
The deprecated method has a replacement of the
WindowSizeClass.Companion.compute
WindowSizeClass
constructor, which is unexpected.I would expect to only need to call the
WindowSizeClass
constructor if I am trying to define my own, customWindowSizeClass
.If I am trying to determine the
WindowSizeClass
for a specific window size, I would expect to call thecompute
method instead.