code: public void printWarning(SourcePosition pos, String msg) {
          if (diagListener != null) {
              report(DiagnosticType.WARNING, pos, msg);
              return;
          }
  
          if (nwarnings < MaxWarnings) {
              String prefix = (pos == null) ? programName : pos.toString();
              PrintWriter warnWriter = getWriter(WriterKind.WARNING);
              warnWriter.println(prefix +  ": " + getText("javadoc.warning") +" - " + msg);
              warnWriter.flush();
              nwarnings++;
          }
      }
docs: Print warning message, increment warning count.
  Part of DocErrorReporter.
  
  @param pos the position where the error occurs
  @param msg message to print