code: private void printWarning(String prefix, String msg) {
          if (nwarnings < MaxWarnings) {
              PrintWriter warnWriter = getWriter(WriterKind.WARNING);
              printRawLines(warnWriter, prefix + ": " + getText("javadoc.warning") + " - " + msg);
              warnWriter.flush();
              nwarnings++;
          }
      }
docs: print the warning and increment count