Fix or suppress SAT CompareObjectsWithEquals findings (#10631)
* Fix or suppress SAT CompareObjectsWithEquals findings Signed-off-by: Wouter Born <github@maindrain.net>
This commit is contained in:
@@ -77,7 +77,7 @@ public class ShellyChannelCache {
|
||||
current = channelData.get(channelId);
|
||||
}
|
||||
if (!enabled || forceUpdate || (current == null) || !current.equals(newValue)) {
|
||||
if ((current != null) && current.getClass().isEnum() && (current == newValue)) {
|
||||
if ((current != null) && current.getClass().isEnum() && (current.equals(newValue))) {
|
||||
return false; // special case for OnOffType
|
||||
}
|
||||
// For channels that support multiple types (like brightness) a suffix is added
|
||||
|
||||
Reference in New Issue
Block a user