From 933f7bb20b079f136c07e655333f9b5eb6d2c117 Mon Sep 17 00:00:00 2001 From: Niklas Baudy Date: Sat, 10 Nov 2018 12:05:32 +0100 Subject: [PATCH] Add @Nullable annotation to RxBluetooth#getBondedDevices() --- .../java/com/github/ivbaranov/rxbluetooth/RxBluetooth.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rxbluetooth/src/main/java/com/github/ivbaranov/rxbluetooth/RxBluetooth.java b/rxbluetooth/src/main/java/com/github/ivbaranov/rxbluetooth/RxBluetooth.java index 8576f6c..241f4bf 100644 --- a/rxbluetooth/src/main/java/com/github/ivbaranov/rxbluetooth/RxBluetooth.java +++ b/rxbluetooth/src/main/java/com/github/ivbaranov/rxbluetooth/RxBluetooth.java @@ -29,6 +29,7 @@ import android.location.LocationManager; import android.os.Build; import android.os.Parcelable; +import android.support.annotation.Nullable; import android.support.annotation.RequiresApi; import android.text.TextUtils; import com.github.ivbaranov.rxbluetooth.events.AclEvent; @@ -160,7 +161,7 @@ public boolean disable() { * * @return unmodifiable set of {@link BluetoothDevice}, or null on error */ - public Set getBondedDevices() { + @Nullable public Set getBondedDevices() { return bluetoothAdapter.getBondedDevices(); }