Is your feature request related to a problem? Please describe.
The method List<ParcelUuid> getServiceUuids() on ScanRecord does not have an @Nullable annotation despite both its implementations ScanRecordImplCompat and ScanRecordNativeWrapper having nullable methods or backing fields.
As the interface didn’t have one, we recently ran into a case where a size check on that list threw a NullPointerException as we didn’t guard against that possibility because neither the interface had the annotation, nor did the IDE warn us (as there was no annotation 😊).
Describe the solution you'd like
It would be nice if all interface methods that could produce nullable return values would also have the @Nullable annotation. In this specific case, as a minimum, getServiceUuids() should have it.
Fatal Exception: java.lang.NullPointerException
Attempt to invoke interface method 'int java.util.List.size()' on a null object reference