protected void processPackage ( PackageDoc doc ) { // (#1) Set foundDoc to false if possible. // foundDoc will be set to true when setRawCommentText() is called, if the method // is called again, JavaDoc will issue a warning about multiple sources for the // package documentation. If there actually *are* multiple sources, the warning // has already been issued at this point, we will, however, use it to set the // resulting HTML. So, we're setting it back to false here, to suppress the // warning. try { Field foundDoc = doc . getClass ( ) . getDeclaredField ( "foundDoc" ) ; foundDoc . setAccessible ( true ) ; foundDoc . set ( doc , false ) ; } catch ( Exception e ) { printWarning ( doc . position ( ) , "Cannot suppress warning about multiple package sources: " + e + "\n" + "Please report this at https://github.com/Abnaxos/markdown-doclet/issues with the exact JavaDoc version you're using" ) ; } defaultProcess ( doc , true ) ; }
Process the package documentation .