View Javadoc
1   package com.puppycrawl.tools.checkstyle.checks.annotation.missingoverride;
2   
3   public class InputMissingOverrideGoodOverride
4   {
5       Runnable r = new Runnable() {
6   
7           public void run() {
8               Throwable t = new Throwable() {
9   
10                  /**
11                   * {@inheritDoc}
12                   */
13                  @Override
14                  public String toString() {
15                      return "junk";
16                  }
17              };
18          }
19      };
20  
21      void doFoo(Runnable r) {
22          doFoo(new Runnable() {
23  
24              public void run() {
25                  Throwable t = new Throwable() {
26  
27                      /**
28                       * {@inheritDoc}
29                       */
30                      @Override
31                      public String toString() {
32                          return "junk";
33                      }
34                  };
35              }
36          });
37      }
38      
39      void doFoo2(Runnable r) {
40          doFoo(new Runnable() {
41  
42              public void run() {
43                  Throwable t = new Throwable() {
44  
45                      /**
46                       * {@inheritDoc}
47                       */
48                      @java.lang.Override
49                      public String toString() {
50                          return "junk";
51                      }
52                  };
53              }
54          });
55      }
56  }