GT-3198 - fix FunctionBitPatternExplorerPlugin xml handling - codereview

Tweak output format, catch null value.
This commit is contained in:
dev747368 2019-10-01 16:46:04 -04:00
parent 2c9b771d13
commit e5184277ef
3 changed files with 22 additions and 2 deletions

View file

@ -166,7 +166,9 @@ public class ContextRegisterInfo {
Element e = new Element(XML_ELEMENT_NAME);
e.setAttribute("contextRegister", contextRegister);
e.setAttribute("value", value);
if (value != null) {
e.setAttribute("value", value);
}
return e;
}

View file

@ -287,7 +287,7 @@ public class FileBitPatternInfo {
Element rootEle = toXml();
Document doc = new Document(rootEle);
XmlUtilities.writeDocToFile(doc, destFile);
XmlUtilities.writePrettyDocToFile(doc, destFile);
}
/**