[infrastructure] add external null-annotations (#8848)
Signed-off-by: Jan N. Klug <jan.n.klug@rub.de>
This commit is contained in:
@@ -56,7 +56,10 @@ public class RoamingBluetoothDevice extends DelegateBluetoothDevice {
|
||||
}
|
||||
|
||||
public void removeBluetoothDevice(BluetoothDevice device) {
|
||||
device.removeListener(devices.remove(device));
|
||||
BluetoothDeviceListener listener = devices.remove(device);
|
||||
if (listener != null) {
|
||||
device.removeListener(listener);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user