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:
@@ -287,7 +287,7 @@ public abstract class AbstractPlugwiseThingHandler extends BaseThingHandler impl
|
||||
|
||||
protected void updateTask(PlugwiseDeviceTask task) {
|
||||
if (task.shouldBeScheduled()) {
|
||||
if (!task.isScheduled() || task.getConfiguredInterval() != task.getInterval()) {
|
||||
if (!task.isScheduled() || !task.getConfiguredInterval().equals(task.getInterval())) {
|
||||
if (task.isScheduled()) {
|
||||
task.stop();
|
||||
}
|
||||
|
||||
@@ -262,7 +262,7 @@ public class PlugwiseStickHandler extends BaseBridgeHandler implements PlugwiseM
|
||||
|
||||
protected void updateTask(PlugwiseDeviceTask task) {
|
||||
if (task.shouldBeScheduled()) {
|
||||
if (!task.isScheduled() || task.getConfiguredInterval() != task.getInterval()) {
|
||||
if (!task.isScheduled() || !task.getConfiguredInterval().equals(task.getInterval())) {
|
||||
if (task.isScheduled()) {
|
||||
task.stop();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user