View Javadoc
1   package com.puppycrawl.tools.checkstyle.checks.annotation.missingoverride;
2   
3   public class InputMissingOverrideGoodOverrideFromObject
4   {
5       /**
6        * {@inheritDoc}
7        */
8       @Override
9       public boolean equals(Object obj)
10      {
11          return false;
12      }
13  
14      /**
15       * {@inheritDoc no violation}
16       *
17       * @inheritDocs}
18       *
19       * {@inheritDoc
20       */
21      @Override
22      public int hashCode()
23      {
24          return 1;
25      }
26  
27      class Junk {
28  
29          /**
30           * {@inheritDoc}
31           */
32          @Override
33          protected void finalize() throws Throwable
34          {
35          }
36      }
37  }
38  
39  interface HashEq {
40  
41      /**
42       * {@inheritDoc}
43       */
44      @Override
45      public int hashCode();
46  }
47  
48  enum Bleh1 {
49      B;
50  
51      /**
52       * {@inheritDoc}
53       */
54      @Override
55      public String toString() {
56          return "B";
57      }
58  }
59  
60  enum Bleh22 {
61      B;
62  
63      /**
64       * {@inheritDoc}
65       */
66      @java.lang.Override
67      public String toString() {
68          return "B";
69      }
70  }