@NonNull @Override public Iterable<ResolvedAnnotation> getAnnotations() { List<ResolvedAnnotation> all = Lists.newArrayListWithExpectedSize(2); AnnotationBinding[] annotations = mBinding.getAnnotations(); int count = annotations.length; if (count == 0) { Binding pkgInfo = mBinding.getTypeOrPackage(TypeConstants.PACKAGE_INFO_NAME); if (pkgInfo != null) { annotations = pkgInfo.getAnnotations(); } count = annotations.length; } if (count > 0) { for (AnnotationBinding annotation : annotations) { if (annotation != null) { all.add(new EcjResolvedAnnotation(annotation)); } } } // Merge external annotations ExternalAnnotationRepository manager = ExternalAnnotationRepository.get(client); Collection<ResolvedAnnotation> external = manager.getAnnotations(this); if (external != null) { all.addAll(external); } all = ensureUnique(all); return all; }
AnnotationBinding [] recipientAnnotations = recipient.getAnnotations(); int length = recipientAnnotations == null ? 0 : recipientAnnotations.length; int newLength = 0;
AnnotationBinding [] recipientAnnotations = recipient.getAnnotations(); int length = recipientAnnotations == null ? 0 : recipientAnnotations.length; int newLength = 0;
AnnotationBinding [] recipientAnnotations = recipient.getAnnotations(); int length = recipientAnnotations == null ? 0 : recipientAnnotations.length; int newLength = 0;
AnnotationBinding [] recipientAnnotations = recipient.getAnnotations(); int length = recipientAnnotations == null ? 0 : recipientAnnotations.length; int newLength = 0;
AnnotationBinding [] recipientAnnotations = recipient.getAnnotations(); int length = recipientAnnotations == null ? 0 : recipientAnnotations.length; int newLength = 0;
AnnotationBinding [] recipientAnnotations = recipient.getAnnotations(); int length = recipientAnnotations == null ? 0 : recipientAnnotations.length; int newLength = 0;
AnnotationBinding [] recipientAnnotations = recipient.getAnnotations(); int length = recipientAnnotations == null ? 0 : recipientAnnotations.length; int newLength = 0;
AnnotationBinding [] recipientAnnotations = recipient.getAnnotations(); int length = recipientAnnotations == null ? 0 : recipientAnnotations.length; int newLength = 0;