private[this] def fieldNameForAnnotation()

in http-core/src/main/scala/com/twitter/finatra/http/marshalling/MessageInjectableValues.scala [363:373]


  private[this] def fieldNameForAnnotation(forProperty: BeanProperty): String = {
    findAnnotation(forProperty, annotations) match {
      case Some(annotation) =>
        ReflectAnnotations.getValueIfAnnotatedWith[InjectableValue](annotation) match {
          case Some(value) if value != null && value.nonEmpty => value
          case _ => forProperty.getName
        }
      case _ =>
        forProperty.getName
    }
  }