View Javadoc
1   /*
2   SummaryJavadoc
3   violateExecutionOnNonTightHtml = (default)false
4   forbiddenSummaryFragments = ^$|fail-summary-fragment
5   period = 。
6   
7   
8   */
9   
10  package com.puppycrawl.tools.checkstyle.checks.javadoc.summaryjavadoc;
11  
12  public class InputSummaryJavadocForbiddenFragmentRelativeToPeriod {
13  
14      /**
15       * Summary sentence on its own line。
16       * <p>
17       * Another sentence that is not part of the summary,
18       * so this should not matter: fail-summary-fragment。
19       */
20      void foo1() {}
21  
22      // violation below 'Forbidden summary fragment.'
23      /**
24       * Summary sentence containing default period mentioning version 1.1, then ending with correct
25       * period after disallowed words, fail-summary-fragment。
26       */
27      void foo2() {}
28  }