View Javadoc
1   package com.puppycrawl.tools.checkstyle.checks.annotation.missingoverride;
2   
3   public class InputMissingOverrideBadOverrideFromObject
4   {
5       /**
6        * {@inheritDoc}
7        */
8       public boolean equals(Object obj)
9       {
10          return false;
11      }
12  
13      /**
14       * {@inheritDoc no violation}
15       *
16       * @inheritDocs}
17       *
18       * {@inheritDoc
19       */
20      public int hashCode()
21      {
22          return 1;
23      }
24  
25      class Junk {
26  
27          /**
28           * {@inheritDoc}
29           */
30          protected void finalize() throws Throwable
31          {
32          }
33      }
34  }
35  
36  interface HashEq2 {
37  
38      /**
39       * {@inheritDoc}
40       */
41      public int hashCode();
42  }
43  
44  enum Bleh3 {
45      B;
46  
47      /**
48       * {@inheritDoc}
49       */
50      public String toString() {
51          return "B";
52      }
53  }