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 ++ ; } }
Print warning message increment warning count . Part of DocErrorReporter .