1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2024-06-16 08:34:50 +02:00

Catch IllegalArgumentException in XmlUtil clinit

Fixes SMACK-833.
This commit is contained in:
Florian Schmaus 2018-10-14 12:10:50 +02:00
parent ec982f65e2
commit cf22371d3e

View file

@ -35,7 +35,11 @@ public class XmlUtil {
private static final TransformerFactory transformerFactory = TransformerFactory.newInstance();
static {
try {
transformerFactory.setAttribute("indent-number", 2);
} catch (IllegalArgumentException e) {
LOGGER.log(Level.INFO, "XML TransformerFactory does not support indent-number attribute", e);
}
}
public static String prettyFormatXml(CharSequence xml) {