File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
avro/src/main/java/tools/jackson/dataformat/avro Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change 7
7
8
8
import tools .jackson .databind .BeanDescription ;
9
9
import tools .jackson .databind .SerializationConfig ;
10
- import tools .jackson .databind .introspect .AnnotatedClass ;
11
10
import tools .jackson .databind .ser .BeanPropertyWriter ;
12
11
import tools .jackson .databind .ser .ValueSerializerModifier ;
13
12
@@ -24,14 +23,13 @@ public class AvroSerializerModifier
24
23
25
24
@ Override
26
25
public List <BeanPropertyWriter > changeProperties (SerializationConfig config ,
27
- BeanDescription beanDesc , List <BeanPropertyWriter > beanProperties )
26
+ BeanDescription . Supplier beanDescRef , List <BeanPropertyWriter > beanProperties )
28
27
{
29
- AnnotatedClass ac = beanDesc .getClassInfo ();
30
28
// Couple of ways to determine if it's generated class: main alternative
31
29
// would be to look for annotation `AvroGenerated` but check for base
32
30
// class seems simpler and as robust:
33
31
34
- if (SpecificRecordBase .class .isAssignableFrom (ac . getRawType ())) {
32
+ if (SpecificRecordBase .class .isAssignableFrom (beanDescRef . getBeanClass ())) {
35
33
Iterator <BeanPropertyWriter > it = beanProperties .iterator ();
36
34
while (it .hasNext ()) {
37
35
BeanPropertyWriter prop = it .next ();
You can’t perform that action at this time.
0 commit comments