Merge "Add hashCode() to BluetoothService$RemoteService"
diff --git a/core/java/android/server/BluetoothService.java b/core/java/android/server/BluetoothService.java
index dfb775f..aa20ac4 100644
--- a/core/java/android/server/BluetoothService.java
+++ b/core/java/android/server/BluetoothService.java
@@ -136,6 +136,14 @@
}
return false;
}
+
+ @Override
+ public int hashCode() {
+ int hash = 1;
+ hash = hash * 31 + (address == null ? 0 : address.hashCode());
+ hash = hash * 31 + (uuid == null ? 0 : uuid.hashCode());
+ return hash;
+ }
}
static {