Skip to content

Commit 38f749b

Browse files
committed
Minor fix wrt #1628
1 parent 9a083ad commit 38f749b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/main/java/com/fasterxml/jackson/databind/ext/OptionalHandlerFactory.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
package com.fasterxml.jackson.databind.ext;
22

3+
import java.util.logging.Logger;
4+
import java.util.logging.Level;
5+
36
import com.fasterxml.jackson.databind.*;
47
import com.fasterxml.jackson.databind.deser.Deserializers;
58
import com.fasterxml.jackson.databind.ser.Serializers;
@@ -49,7 +52,8 @@ public class OptionalHandlerFactory implements java.io.Serializable
4952
doc = org.w3c.dom.Document.class;
5053
} catch (Exception e) {
5154
// not optimal but will do
52-
System.err.println("WARNING: could not load DOM Node and/or Document classes");
55+
Logger.getLogger(OptionalHandlerFactory.class.getName())
56+
.log(Level.INFO, "Could not load DOM `Node` and/or `Document` classes: no DOM support");
5357
}
5458
CLASS_DOM_NODE = node;
5559
CLASS_DOM_DOCUMENT = doc;

0 commit comments

Comments
 (0)