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:
@@ -99,6 +99,7 @@ public class LcnModuleDiscoveryService extends AbstractDiscoveryService
|
||||
}
|
||||
|
||||
@Override
|
||||
@SuppressWarnings("PMD.CompareObjectsWithEquals")
|
||||
protected void startScan() {
|
||||
synchronized (this) {
|
||||
PckGatewayHandler localBridgeHandler = bridgeHandler;
|
||||
|
||||
@@ -54,6 +54,7 @@ public class LcnModuleRvarSetpointSubHandler extends AbstractLcnModuleVariableSu
|
||||
}
|
||||
|
||||
@Override
|
||||
@SuppressWarnings("PMD.CompareObjectsWithEquals")
|
||||
public void handleStatusMessage(Matcher matcher) throws LcnException {
|
||||
Variable variable;
|
||||
if (matcher.pattern() == PATTERN) {
|
||||
|
||||
@@ -66,6 +66,7 @@ public class LcnModuleVariableSubHandler extends AbstractLcnModuleVariableSubHan
|
||||
}
|
||||
|
||||
@Override
|
||||
@SuppressWarnings("PMD.CompareObjectsWithEquals")
|
||||
public void handleStatusMessage(Matcher matcher) throws LcnException {
|
||||
Variable variable;
|
||||
if (matcher.pattern() == PATTERN) {
|
||||
|
||||
Reference in New Issue
Block a user