View Javadoc
1   /*
2   DesignForExtension
3   ignoredAnnotations = (default)After, AfterClass, Before, BeforeClass, Test
4   requiredJavadocPhrase = This[\\s\\S]*implementation
5   
6   
7   */
8   
9   package com.puppycrawl.tools.checkstyle.checks.design.designforextension;
10  
11  public class InputDesignForExtensionRequiredJavadocPhraseMultiLine {
12      /**
13       * This
14       * implementation ..
15       */
16      public int foo1(int a, int b) {
17          return a * b;
18      }
19  
20      /**
21       * This method can safely be overridden.
22       */
23      public int foo2(int a, int b) {  // violation
24          return a + b;
25      }
26  }