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:
@@ -47,6 +47,7 @@ public class Command implements Delayed {
|
||||
}
|
||||
|
||||
@Override
|
||||
@SuppressWarnings("PMD.CompareObjectsWithEquals")
|
||||
public int compareTo(Delayed delayed) {
|
||||
if (delayed == this) {
|
||||
return 0;
|
||||
|
||||
@@ -30,6 +30,7 @@ public class DelayedCommand extends Command {
|
||||
}
|
||||
|
||||
@Override
|
||||
@SuppressWarnings("PMD.CompareObjectsWithEquals")
|
||||
public int compareTo(Delayed delayed) {
|
||||
if (delayed == this) {
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user