private boolean hasRelevantAnnotations(@Nullable Annotation[] annotations) { if (annotations == null) { return false; } for (Annotation annotation : annotations) { if (isRelevantAnnotation(annotation)) { return true; } } return false; }
private boolean hasRelevantAnnotations(@Nullable Annotation[] annotations) { if (annotations == null) { return false; } for (Annotation annotation : annotations) { if (isRelevantAnnotation(annotation)) { return true; } } return false; }
private boolean hasRelevantAnnotations(Element item) { for (Element annotationElement : getChildren(item)) { if (isRelevantAnnotation(annotationElement)) { return true; } } return false; }
private boolean hasRelevantAnnotations(Element item) { for (Element annotationElement : getChildren(item)) { if (isRelevantAnnotation(annotationElement)) { return true; } } return false; }
private int addAnnotations(Element itemElement, Item item) { int count = 0; for (Element annotationElement : getChildren(itemElement)) { if (!isRelevantAnnotation(annotationElement)) { continue; } AnnotationData annotation = createAnnotation(annotationElement); item.annotations.add(annotation); count++; } return count; }
private int addAnnotations(Element itemElement, Item item) { int count = 0; for (Element annotationElement : getChildren(itemElement)) { if (!isRelevantAnnotation(annotationElement)) { continue; } AnnotationData annotation = createAnnotation(annotationElement); item.annotations.add(annotation); count++; } return count; }
private void addAnnotations(@Nullable Annotation[] annotations, @NonNull Item item) { if (annotations != null) { for (Annotation annotation : annotations) { if (isRelevantAnnotation(annotation)) { AnnotationData annotationData = createAnnotation(annotation); if (annotationData != null) { if (annotationData.name.equals(SUPPORT_KEEP)) { // Put keep rules in a different place; we don't want to write // these out into the external annotations database, they go // into a special proguard file keepItems.add(item); } else { item.annotations.add(annotationData); } } } } } }
private void addAnnotations(@Nullable Annotation[] annotations, @NonNull Item item) { if (annotations != null) { for (Annotation annotation : annotations) { if (isRelevantAnnotation(annotation)) { String fqn = getFqn(annotation); if (SUPPORT_KEEP.equals(fqn)) { // Put keep rules in a different place; we don't want to write // these out into the external annotations database, they go // into a special proguard file keepItems.add(item); } else { addAnnotation(annotation, fqn, item.annotations); } } } } }
loop: for (Element annotationElement : getChildren(itemElement)) { if (!isRelevantAnnotation(annotationElement)) { continue;
loop: for (Element annotationElement : getChildren(itemElement)) { if (!isRelevantAnnotation(annotationElement)) { continue;