Java 类org.codehaus.jackson.annotate.JsonWriteNullProperties 实例源码

项目:12306-android-Decompile    文件:JacksonAnnotationIntrospector.java   
public JsonSerialize.Inclusion findSerializationInclusion(Annotated paramAnnotated, JsonSerialize.Inclusion paramInclusion)
{
  JsonSerialize localJsonSerialize = (JsonSerialize)paramAnnotated.getAnnotation(JsonSerialize.class);
  if (localJsonSerialize != null)
    return localJsonSerialize.include();
  JsonWriteNullProperties localJsonWriteNullProperties = (JsonWriteNullProperties)paramAnnotated.getAnnotation(JsonWriteNullProperties.class);
  if (localJsonWriteNullProperties != null)
  {
    if (localJsonWriteNullProperties.value())
      return JsonSerialize.Inclusion.ALWAYS;
    return JsonSerialize.Inclusion.NON_NULL;
  }
  return paramInclusion;
}
项目:12306-android-Decompile    文件:JacksonAnnotationIntrospector.java   
public JsonSerialize.Inclusion findSerializationInclusion(Annotated paramAnnotated, JsonSerialize.Inclusion paramInclusion)
{
  JsonSerialize localJsonSerialize = (JsonSerialize)paramAnnotated.getAnnotation(JsonSerialize.class);
  if (localJsonSerialize != null)
    return localJsonSerialize.include();
  JsonWriteNullProperties localJsonWriteNullProperties = (JsonWriteNullProperties)paramAnnotated.getAnnotation(JsonWriteNullProperties.class);
  if (localJsonWriteNullProperties != null)
  {
    if (localJsonWriteNullProperties.value())
      return JsonSerialize.Inclusion.ALWAYS;
    return JsonSerialize.Inclusion.NON_NULL;
  }
  return paramInclusion;
}