File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed
src/test/java/com/fasterxml/jackson/databind/introspect Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change 1
1
package com .fasterxml .jackson .databind .introspect ;
2
2
3
+ import com .fasterxml .jackson .annotation .JsonCreator ;
3
4
import com .fasterxml .jackson .databind .*;
5
+ import com .fasterxml .jackson .databind .cfg .MapperConfig ;
4
6
5
7
/**
6
8
* Tests Scala-style JVM naming patterns for properties.
@@ -49,13 +51,21 @@ public String findImplicitPropertyName(AnnotatedMember member) {
49
51
return null ;
50
52
}
51
53
54
+ /* Deprecated since 2.9
52
55
@Override
53
56
public boolean hasCreatorAnnotation(Annotated a) {
54
- // A placeholder for legitmate creator detection.
57
+ return (a instanceof AnnotatedConstructor);
58
+ }
59
+ */
60
+
61
+ @ Override
62
+ public JsonCreator .Mode findCreatorAnnotation (MapperConfig <?> config , Annotated a ) {
63
+ // A placeholder for legitimate creator detection.
55
64
// In Scala, all primary constructors should be creators,
56
65
// but I can't obtain a reference to the AnnotatedClass from the
57
66
// AnnotatedConstructor, so it's simulated here.
58
- return (a instanceof AnnotatedConstructor );
67
+ return (a instanceof AnnotatedConstructor )
68
+ ? JsonCreator .Mode .DEFAULT : null ;
59
69
}
60
70
}
61
71
You can’t perform that action at this time.
0 commit comments