Reduce SAT warnings (#15090)

Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
This commit is contained in:
Holger Friedrich
2023-06-15 00:02:10 +02:00
committed by GitHub
parent 7ef268f4d2
commit a5c47aebee
23 changed files with 8 additions and 56 deletions

View File

@@ -146,7 +146,6 @@ public class SunspecDiscoveryProcess {
* @throws EndpointNotInitializedException
*/
public void detectModel() {
if (possibleAddresses.isEmpty()) {
parsingFinished();
return;
@@ -189,7 +188,6 @@ public class SunspecDiscoveryProcess {
* Look for a valid model block at the current base address
*/
private void lookForModelBlock() {
ModbusReadRequestBlueprint request = new ModbusReadRequestBlueprint(slaveId,
ModbusReadFunctionCode.READ_MULTIPLE_REGISTERS, baseAddress, // Start address
MODEL_HEADER_SIZE, // number or words to return
@@ -233,7 +231,6 @@ public class SunspecDiscoveryProcess {
createDiscoveryResult(block);
lookForModelBlock();
}
}
}

View File

@@ -129,7 +129,6 @@ public abstract class AbstractSunSpecHandler extends BaseThingHandler {
* Start the periodic polling
*/
private void startUp() {
connectEndpoint();
if (comms == null || config == null) {

View File

@@ -38,7 +38,6 @@ public class CommonModelParser extends AbstractBaseParser implements SunspecPars
@Override
public CommonModelBlock parse(ModbusRegisterArray raw) {
CommonModelBlock block = new CommonModelBlock();
block.sunSpecDID = extractUInt16(raw, 0, 0);