File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
src/main/java/com/fasterxml/jackson/databind/ser/std Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change 11
11
import com .fasterxml .jackson .core .*;
12
12
import com .fasterxml .jackson .databind .*;
13
13
import com .fasterxml .jackson .databind .annotation .JacksonStdImpl ;
14
+ import com .fasterxml .jackson .databind .introspect .AnnotatedMethod ;
14
15
import com .fasterxml .jackson .databind .jsonFormatVisitors .JsonFormatVisitable ;
15
16
import com .fasterxml .jackson .databind .jsonFormatVisitors .JsonFormatVisitorWrapper ;
16
17
import com .fasterxml .jackson .databind .jsonFormatVisitors .JsonStringFormatVisitor ;
@@ -57,6 +58,11 @@ public class JsonValueSerializer
57
58
/**********************************************************
58
59
*/
59
60
61
+ // Added in 2.7.4 for forward-compatibility reasons; will be used by default in 2.8.0
62
+ public JsonValueSerializer (AnnotatedMethod valueMethod , JsonSerializer <?> ser ) {
63
+ this (valueMethod .getAnnotated (), ser );
64
+ }
65
+
60
66
/**
61
67
* @param ser Explicit serializer to use, if caller knows it (which
62
68
* occurs if and only if the "value method" was annotated with
You can’t perform that action at this time.
0 commit comments