1   ////////////////////////////////////////////////////////////////////////////////
2   // Test case file for checkstyle.
3   // Created: 2001
4   ////////////////////////////////////////////////////////////////////////////////
5   package com . puppycrawl
6       .tools.
7       checkstyle.checks.javadoc.javadoctype;
8   
9   /**
10   * Class for testing javadoc issues.
11   * error missing author tag
12   **/
13  class InputJavadocTypeWhitespace
14  {
15      /** another check */
16      void donBradman(Runnable aRun)
17      {
18          donBradman(new Runnable() {
19              public void run() {
20              }
21          });
22  
23          final Runnable r = new Runnable() {
24              public void run() {
25              }
26          };
27      }
28  
29      /** bug 806243 (NoWhitespaceBeforeCheck error for anonymous inner class) */
30      void bug806243()
31      {
32          Object o = new InputJavadocTypeWhitespace() {
33              private int j ;
34          };
35      }
36  }
37  
38  /**
39   * Bug 806242 (NoWhitespaceBeforeCheck error with an interface).
40   * @author o_sukhodolsky
41   * @version 1.0
42   */
43  interface IFoo
44  {
45      void foo() ;
46  }
47  
48  /**
49   * Avoid Whitespace errors in for loop.
50   * @author lkuehne
51   * @version 1.0
52   */
53  class SpecialCasesInForLoop
54  {
55      public void myMethod() {
56          new Thread() {
57              public void run() {
58              }
59          }.start();
60      }
61  }