warnings - PMD Class definition inside method -


i use local class inside method , pmd triggers 2 warnings headercommentrequirement class , publicmethodcommentrequirement method inside class, write comments on both if normal class doesn't work. ideas on this? help. code looks this:

/** *  * @author me * */ class myclass{     void thismethod(){         if(condition){              /**             *              * @author me             * local class             */             class localclass implements otherclass{                  /**                 * method comment                 */                               public boolean boolmethod(){                     //do                 }             }         }     } } 

correct javadoc should have second , following lines indented addtional space, , description should before tags:

/**  * description.  * @author me  */ 

Comments

Popular posts from this blog

jOOQ update returning clause with Oracle -

java - Warning equals/hashCode on @Data annotation lombok with inheritance -

java - BasicPathUsageException: Cannot join to attribute of basic type -