Fix/suppress PMD CompareObjectsWithEquals findings (#11476)
Newer PMD versions discover more CompareObjectsWithEquals findings. Related to https://github.com/openhab/static-code-analysis/pull/423 Signed-off-by: Wouter Born <github@maindrain.net>
This commit is contained in:
@@ -83,6 +83,7 @@ public class BlueZBluetoothDevice extends BaseBluetoothDevice implements BlueZEv
|
||||
logger.debug("Creating DBusBlueZ device with address '{}'", address);
|
||||
}
|
||||
|
||||
@SuppressWarnings("PMD.CompareObjectsWithEquals")
|
||||
public synchronized void updateBlueZDevice(@Nullable BluetoothDevice blueZDevice) {
|
||||
if (this.device != null && this.device == blueZDevice) {
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user