Fix javadoc warning
[deliverable/tracecompass.git] / tmf / org.eclipse.tracecompass.tmf.core / src / org / eclipse / tracecompass / tmf / core / parsers / custom / CustomXmlTraceDefinition.java
index 6fc26120c84935436e917455b19893c4c2f7d10a..c0bf814d52ed1d759e2a5ec798e5b934417519e3 100644 (file)
@@ -61,7 +61,7 @@ import org.xml.sax.SAXParseException;
 public class CustomXmlTraceDefinition extends CustomTraceDefinition {
 
     /** Ignore tag
-     * @deprecated Use {@link Tag#IGNORE} instead. */
+     * @deprecated Use {@link org.eclipse.tracecompass.tmf.core.parsers.custom.CustomTraceDefinition.Tag#IGNORE} instead. */
     @Deprecated
     public static final String TAG_IGNORE = Messages.CustomXmlTraceDefinition_ignoreTag;
 
@@ -195,9 +195,11 @@ public class CustomXmlTraceDefinition extends CustomTraceDefinition {
             definitionElement.setAttribute(CATEGORY_ATTRIBUTE, categoryName);
             definitionElement.setAttribute(NAME_ATTRIBUTE, definitionName);
 
-            Element formatElement = doc.createElement(TIME_STAMP_OUTPUT_FORMAT_ELEMENT);
-            definitionElement.appendChild(formatElement);
-            formatElement.appendChild(doc.createTextNode(timeStampOutputFormat));
+            if (timeStampOutputFormat != null && !timeStampOutputFormat.isEmpty()) {
+                Element formatElement = doc.createElement(TIME_STAMP_OUTPUT_FORMAT_ELEMENT);
+                definitionElement.appendChild(formatElement);
+                formatElement.appendChild(doc.createTextNode(timeStampOutputFormat));
+            }
 
             if (rootInputElement != null) {
                 definitionElement.appendChild(createInputElementElement(rootInputElement, doc));
This page took 0.083118 seconds and 5 git commands to generate.