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 77
88import  tools .jackson .databind .BeanDescription ;
99import  tools .jackson .databind .SerializationConfig ;
10- import  tools .jackson .databind .introspect .AnnotatedClass ;
1110import  tools .jackson .databind .ser .BeanPropertyWriter ;
1211import  tools .jackson .databind .ser .ValueSerializerModifier ;
1312
@@ -24,14 +23,13 @@ public class AvroSerializerModifier
2423
2524    @ Override 
2625    public  List <BeanPropertyWriter > changeProperties (SerializationConfig  config ,
27-             BeanDescription   beanDesc , List <BeanPropertyWriter > beanProperties )
26+             BeanDescription . Supplier   beanDescRef , List <BeanPropertyWriter > beanProperties )
2827    {
29-         AnnotatedClass  ac  = beanDesc .getClassInfo ();
3028        // Couple of ways to determine if it's generated class: main alternative 
3129        // would be to look for annotation `AvroGenerated` but check for base 
3230        // class seems simpler and as robust: 
3331
34-         if  (SpecificRecordBase .class .isAssignableFrom (ac . getRawType ())) {
32+         if  (SpecificRecordBase .class .isAssignableFrom (beanDescRef . getBeanClass ())) {
3533            Iterator <BeanPropertyWriter > it  = beanProperties .iterator ();
3634            while  (it .hasNext ()) {
3735                BeanPropertyWriter  prop  = it .next ();
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments