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:
@@ -318,7 +318,7 @@ public class WLedHandler extends BaseThingHandler {
|
||||
}
|
||||
}
|
||||
} else if (command instanceof HSBType) {
|
||||
if ((((HSBType) command).getBrightness()) == PercentType.ZERO) {
|
||||
if (PercentType.ZERO.equals(((HSBType) command).getBrightness())) {
|
||||
sendGetRequest("/win&TT=500&T=0");
|
||||
}
|
||||
primaryColor = (HSBType) command;
|
||||
|
||||
Reference in New Issue
Block a user