private AnnotatedField _findField(AnnotatedClass ac, String name) {
   for (AnnotatedField af : ac.fields()) {
     if (name.equals(af.getName())) {
       return af;
     }
   }
   return null;
 }
 /** Constructor used for JDK Serialization when reading persisted object */
 protected FieldProperty(FieldProperty src) {
   super(src);
   _annotated = src._annotated;
   Field f = _annotated.getAnnotated();
   if (f == null) {
     throw new IllegalArgumentException("Missing field (broken JDK (de)serialization?)");
   }
   _field = f;
 }
Exemplo n.º 3
0
 public FieldProperty(
     BeanPropertyDefinition propDef,
     JavaType type,
     TypeDeserializer typeDeser,
     Annotations contextAnnotations,
     AnnotatedField field) {
   super(propDef, type, typeDeser, contextAnnotations);
   _annotated = field;
   _field = field.getAnnotated();
 }
Exemplo n.º 4
0
 @Override
 public <A extends Annotation> A getAnnotation(Class<A> acls) {
   return _annotated.getAnnotation(acls);
 }