Cleanup.
This commit is contained in:
parent
3688384b0d
commit
3a64bd57d5
1 changed files with 5 additions and 13 deletions
|
@ -101,18 +101,10 @@ public final class Utils {
|
|||
*/
|
||||
public static void outWrite(final Writer out, final String value, final String defaultValue, final boolean xml)
|
||||
throws IOException {
|
||||
if (xml) {
|
||||
if (value != null) {
|
||||
out.write(escapeXml(value));
|
||||
} else if (defaultValue != null) {
|
||||
out.write(escapeXml(defaultValue));
|
||||
}
|
||||
} else {
|
||||
if (value != null) {
|
||||
out.write(value);
|
||||
} else if (defaultValue != null) {
|
||||
out.write(defaultValue);
|
||||
}
|
||||
if (value != null) {
|
||||
out.write(xml ? escapeXml(value) : value);
|
||||
} else if (defaultValue != null) {
|
||||
out.write(xml ? escapeXml(defaultValue) : defaultValue);
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue