This commit is contained in:
parent
8cfc21bc3c
commit
4e9a3d90d3
|
@ -65,6 +65,8 @@ public class Msq {
|
||||||
}
|
}
|
||||||
|
|
||||||
public void writeXmlFile(String outputXmlFileName) throws JAXBException, IOException {
|
public void writeXmlFile(String outputXmlFileName) throws JAXBException, IOException {
|
||||||
|
Objects.requireNonNull(versionInfo, "versionInfo");
|
||||||
|
versionInfo.validate();
|
||||||
XmlUtil.writeXml(this, Msq.class, outputXmlFileName);
|
XmlUtil.writeXml(this, Msq.class, outputXmlFileName);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
package com.rusefi.tune.xml;
|
package com.rusefi.tune.xml;
|
||||||
|
|
||||||
import javax.xml.bind.annotation.XmlAttribute;
|
import javax.xml.bind.annotation.XmlAttribute;
|
||||||
|
import java.util.Objects;
|
||||||
|
|
||||||
public class VersionInfo {
|
public class VersionInfo {
|
||||||
private String firmwareInfo;
|
private String firmwareInfo;
|
||||||
|
@ -40,4 +41,8 @@ public class VersionInfo {
|
||||||
public void setSignature(String signature) {
|
public void setSignature(String signature) {
|
||||||
this.signature = signature;
|
this.signature = signature;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void validate() {
|
||||||
|
Objects.requireNonNull(signature, "signature");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue