code: @Override
      public void verify(Document document) throws SymbolWarning {
          List<AnnotationSyntaxWarning> l =
                  new ArrayList<AnnotationSyntaxWarning>();
          for (Annotation annotation : document.getAllAnnotations()) {
              try {
                  verify(annotation);
              } catch (AnnotationSyntaxWarning asw) {
                  l.add(asw);
              }
          }
          if (!l.isEmpty()) {
              final String name = document.getName();
              final String fmt = INVALID_ANNOTATIONS;
              final String msg = format(fmt, l.size());
              throw new SymbolWarning(name, msg, l);
          }
      }
docs: {@inheritDoc}