final
This commit is contained in:
parent
5af284a6d7
commit
2dddc8115b
|
@ -102,7 +102,7 @@ public abstract class Command implements Serializable {
|
|||
@NotNull(message = "下发设备标识不能为空")
|
||||
private Long deviceId;
|
||||
|
||||
public Collection<ModbusCommandDto> buildModbusCommand() {
|
||||
public final Collection<ModbusCommandDto> buildModbusCommand() {
|
||||
if (!this.validate()) {
|
||||
throw new InvalidParameterException("Invalid command");
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue