From cdbf1fd4e081ce94e5c2dec7e6e912ce35247c7e Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Mon, 29 Jun 2020 15:34:46 +0200 Subject: DBTAdapter: Fix equals(..) --- java/direct_bt/tinyb/DBTAdapter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'java/direct_bt') diff --git a/java/direct_bt/tinyb/DBTAdapter.java b/java/direct_bt/tinyb/DBTAdapter.java index b10eb02c..4c924b6d 100644 --- a/java/direct_bt/tinyb/DBTAdapter.java +++ b/java/direct_bt/tinyb/DBTAdapter.java @@ -109,7 +109,7 @@ public class DBTAdapter extends DBTObject implements BluetoothAdapter @Override public boolean equals(final Object obj) { - if (obj == null || !(obj instanceof DBTDevice)) { + if (obj == null || !(obj instanceof DBTAdapter)) { return false; } final DBTAdapter other = (DBTAdapter)obj; -- cgit v1.2.3