View Javadoc
1   package com.puppycrawl.tools.checkstyle.checks.annotation.missingoverride;
2   
3   import java.io.Serializable;
4   
5   public class InputMissingOverrideGoodOverrideFromOther implements IFoo
6   {
7       public void doFoo() { }
8   
9       public void doFoo2() { }
10  
11  }
12  
13  interface IFoo {
14  
15      void doFoo();
16  }
17  
18  interface IBar extends IFoo {
19  
20      public void doFoo();
21  }
22  
23  class MoreJunk extends InputMissingOverrideGoodOverrideFromOther {
24  
25      /**
26       * {@inheritDoc}
27       */
28      @Override
29      public void doFoo() {
30      }
31  
32      /**
33       * {@inheritDoc}
34       */
35      @Override
36      public void doFoo2() { }
37  
38      class EvenMoreJunk extends MoreJunk implements Serializable {
39  
40          /**
41           * {@inheritDoc}
42           */
43          @Override
44          public void doFoo() {
45          }
46  
47          /**
48           * {@inheritDoc}
49           */
50          @Override
51          public void doFoo2() { }
52      }
53      
54      class EvenMoreMoreJunk extends MoreJunk implements Serializable {
55  
56          /**
57           * {@inheritDoc}
58           */
59          @java.lang.Override
60          public void doFoo() {
61          }
62  
63          /**
64           * {@inheritDoc}
65           */
66          @java.lang.Override
67          public void doFoo2() { }
68      }
69  }
70  
71  enum Football implements IFoo, IBar {
72      Detroit_Lions;
73  
74      public void doFoo()
75      {
76  
77      }
78  }