Class BlockCommentEndPositionCheck

All Implemented Interfaces:
Configurable, Contextualizable

Checks that the Javadoc block comment end */ position is either alone on its own line or on the same line as the block comment begin code /**.

It is possible to enforce two different strategies:

  • alone - The block comment end must be alone on its own line. This allows only multi-line Javadoc comments:
    
     /**
      * Multiple lines of Javadoc text are written here,
      * wrapped normally...
      */
     public void method();
     
  • alone_or_singleline - The block comment end must be either alone on its own line or on the same line as the block comment begin. This allows multi-line Javadoc as well as single-line Javadoc comments:
    
     // Block comment end is alone on its own line
     /**
      * Multiple lines of Javadoc text are written here,
      * wrapped normally...
      */
     public void method();
    
     // Single-line Javadoc
     /** Javadoc summary. */
     public void method1();
     
Since:
13.3.0