/** * Constructs a Field Attributes object from the {@code f}. * * @param f the field to pull attributes from * @param declaringType The type in which the field is declared */ FieldAttributes(Class<?> declaringClazz, Field f, Type declaringType) { this.declaringClazz = $Gson$Preconditions.checkNotNull(declaringClazz); this.name = f.getName(); this.declaredType = f.getType(); this.isSynthetic = f.isSynthetic(); this.modifiers = f.getModifiers(); this.field = f; this.resolvedType = getTypeInfoForField(f, declaringType); }