Jindent - Java Source Code Formatter http://www.jindent.com
 



title
5.6.1.12.2 Misc

Blank lines before JavaDocs

Blank lines before JavaDocs

Sets number of blank lines before JavaDoc comments.

JavaDoc comments are from type /** ... */ and can contain a single or muliple lines.


Set 1 blank line before JavaDoc comments:

                                       
/**                                     
 * Calculates something.                
 *                                      
 * @param i   value i                   
 */                                     
public void test(int i)                 
{                                       
    ...                                 
}                                       


Set 2 blank lines before JavaDoc comments:

                                       
                                       
/**                                     
 * Calculates something.                
 *                                      
 * @param i   value i                   
 */                                     
public void test(int i)                 
{                                       
    ...                                 
}                                       



Blank line after JavaDocs

Blank line after JavaDocs

Sets number of blank lines after JavaDoc comments.


Set 1 blank line after JavaDoc comments:

/**                                     
 * Calculates something.                
 *                                      
 * @param i   value i                   
 */                                     
                                       
public void test(int i)                 
{                                       
    ...                                 
}                                       


Set 1 blank line before and after JavaDoc comments:

                                       
/**                                     
 * Calculates something.                
 *                                      
 * @param i   value i                   
 */                                     
                                       
public void test(int i)                 
{                                       
    ...                                 
}                                       



Format existing JavaDocs

Format existing JavaDocs

Enables formatting of JavaDoc comments.

To preserve JavaDoc comment style from original source code just disable this setting.


Do not format JavaDoc comments (preserve original JavaDocs formatting from input source code) and an example could look like:

/**                                     
   Calculates something.                
                                        
   @param i   value i                   
 */                                     
public void test(int i)                 
{                                       
    ...                                 
}                                       


Format JavaDoc comments and the same example looks like:

/**                                     
 * Calculates something.                
 *                                      
 * @param i   value i                   
 */                                     
public void test(int i)                 
{                                       
    ...                                 
}                                       



Delete existing JavaDocs

Delete existing JavaDocs

Removes all JavaDoc comments.

To keep all JavaDoc comments from original source code just disable this setting.


Original input source code example:

public class MyClass {                  
                                        
    
/**                                 
     * Calculates something.            
     *                                  
     * @param i   value i               
     */                                 
    
public void test(int i)             
    {                                   
        ...                             
    }                                   
}                                       


After deleting JavaDoc comments:

public class MyClass {                  
                                        
    
public void test(int i)             
    {                                   
        ...                             
    }                                   
}                                       

Please note: If deletion of JavaDocs and JavaDoc template insertion is enabled, then Jindent removes all JavaDocs from input source files and then inserts the new templates.