This commit is contained in:
Erik C. Thauvin 2021-03-17 12:26:03 -07:00
parent 3688384b0d
commit 3a64bd57d5

View file

@ -101,18 +101,10 @@ public final class Utils {
*/ */
public static void outWrite(final Writer out, final String value, final String defaultValue, final boolean xml) public static void outWrite(final Writer out, final String value, final String defaultValue, final boolean xml)
throws IOException { throws IOException {
if (xml) { if (value != null) {
if (value != null) { out.write(xml ? escapeXml(value) : value);
out.write(escapeXml(value)); } else if (defaultValue != null) {
} else if (defaultValue != null) { out.write(xml ? escapeXml(defaultValue) : defaultValue);
out.write(escapeXml(defaultValue));
}
} else {
if (value != null) {
out.write(value);
} else if (defaultValue != null) {
out.write(defaultValue);
}
} }
} }
} }