View Javadoc
1   package com.puppycrawl.tools.checkstyle.checks.annotation.missingoverride;
2   
3   public class InputMissingOverrideBadAnnotation
4   {
5       Runnable r = new Runnable() {
6   
7           /**
8            * {@inheritDoc}
9            */
10          public void run() {
11              Throwable t = new Throwable() {
12  
13                  /**
14                   * {@inheritDoc}
15                   */
16                  public String toString() {
17                      return "junk";
18                  }
19              };
20          }
21      };
22  
23      void doFoo(Runnable r) {
24          doFoo(new Runnable() {
25  
26              /**
27               * {@inheritDoc}
28               */
29              public void run() {
30                  Throwable t = new Throwable() {
31  
32                      /**
33                       * {@inheritDoc}
34                       */
35                      public String toString() {
36                          return "junk";
37                      }
38                  };
39              }
40          });
41      }
42  }