コード例 #1
0
 @Override
 @Deprecated
 public final JsonFormat.Value findFormatOverrides(AnnotationIntrospector intr) {
   JsonFormat.Value f = null;
   if (intr != null) {
     AnnotatedMember member = getMember();
     if (member != null) {
       f = intr.findFormat(member);
     }
   }
   if (f == null) {
     f = EMPTY_FORMAT;
   }
   return f;
 }
コード例 #2
0
 @Override
 public JsonFormat.Value findPropertyFormat(MapperConfig<?> config, Class<?> baseType) {
   // 15-Apr-2016, tatu: Let's calculate lazily, retain; assumption being however that
   //    baseType is always the same
   JsonFormat.Value v = _propertyFormat;
   if (v == null) {
     JsonFormat.Value v1 = config.getDefaultPropertyFormat(baseType);
     JsonFormat.Value v2 = null;
     AnnotationIntrospector intr = config.getAnnotationIntrospector();
     if (intr != null) {
       AnnotatedMember member = getMember();
       if (member != null) {
         v2 = intr.findFormat(member);
       }
     }
     if (v1 == null) {
       v = (v2 == null) ? EMPTY_FORMAT : v2;
     } else {
       v = (v2 == null) ? v1 : v1.withOverrides(v2);
     }
     _propertyFormat = v;
   }
   return v;
 }