protected void appendSerialNumberIfSerializable ( GenerationContext context , XtendTypeDeclaration source , JvmGenericType target ) { if ( ! target . isInterface ( ) && this . inheritanceHelper . isSubTypeOf ( target , Serializable . class , null ) ) { appendSerialNumber ( context , source , target ) ; } }
Append the serial number field if and only if the container type is serializable .