private static void removeAnnotation()

in TransformCore/src/main/java/com/facebook/ads/injkit/threadcheck/ThreadCheckInjector.java [136:148]


  private static void removeAnnotation(List<AnnotationNode> annotations, String desc) {
    if (annotations == null) {
      return;
    }

    for (Iterator<AnnotationNode> it = annotations.iterator(); it.hasNext(); ) {
      AnnotationNode node = it.next();
      if (desc.equals(node.desc)) {
        it.remove();
        return;
      }
    }
  }