File tree 2 files changed +10
-4
lines changed
src/main/java/com/fasterxml/jackson/databind/ext
2 files changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -4,10 +4,12 @@ Project: jackson-databind
4
4
=== Releases ===
5
5
------------------------------------------------------------------------
6
6
7
- 2.7.9.2 (not yet released)
7
+ 2.7.10 (not yet released)
8
8
9
9
#1607: @JsonIdentityReference not used when setup on class only
10
10
(reported by vboulaye@github)
11
+ #1628: Don't print to error stream about failure to load JDK 7 types
12
+ (reported by Villane@github)
11
13
12
14
2.7.9.1 (18-Apr-2017)
13
15
Original file line number Diff line number Diff line change 1
1
package com .fasterxml .jackson .databind .ext ;
2
2
3
+ import java .util .logging .Logger ;
4
+ import java .util .logging .Level ;
5
+
3
6
import com .fasterxml .jackson .databind .*;
4
7
import com .fasterxml .jackson .databind .deser .Deserializers ;
5
8
import com .fasterxml .jackson .databind .ser .Serializers ;
@@ -52,7 +55,8 @@ public class OptionalHandlerFactory implements java.io.Serializable
52
55
doc = org .w3c .dom .Document .class ;
53
56
} catch (Exception e ) {
54
57
// not optimal but will do
55
- System .err .println ("WARNING: could not load DOM Node and/or Document classes" );
58
+ Logger .getLogger ("com.fasterxml.jackson.databind.ext.OptionalHandlerFactory" )
59
+ .log (Level .INFO , "Could not load DOM `Node` and/or `Document` classes: ignoring" );
56
60
}
57
61
CLASS_DOM_NODE = node ;
58
62
CLASS_DOM_DOCUMENT = doc ;
@@ -68,8 +72,8 @@ public class OptionalHandlerFactory implements java.io.Serializable
68
72
try {
69
73
cls = Class .forName ("java.nio.file.Path" );
70
74
} catch (Exception e ) {
71
- // not optimal but will do
72
- System . err . println ( "WARNING: could not load Java7 Path class" );
75
+ Logger . getLogger ( "com.fasterxml.jackson.databind.ext.OptionalHandlerFactory" )
76
+ . log ( Level . INFO , "Could not load Java7 `java.nio.file. Path` class: ignoring " );
73
77
}
74
78
CLASS_JAVA7_PATH = cls ;
75
79
}
You can’t perform that action at this time.
0 commit comments