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:
@@ -128,7 +128,7 @@ public class NATherm1Handler extends NetatmoModuleHandler<NAThermostat> {
|
||||
String currentPlanning = "-";
|
||||
if (thermostat.isPresent()) {
|
||||
for (NAThermProgram program : nonNullList(thermostat.get().getThermProgramList())) {
|
||||
if (program.isSelected() == Boolean.TRUE) {
|
||||
if (Boolean.TRUE.equals(program.isSelected())) {
|
||||
currentPlanning = program.getProgramId();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user