1
2
3
4
5
6
7
8 package com.puppycrawl.tools.checkstyle.checks.annotation.missingoverride;
9
10 public class InputMissingOverrideBadOverrideFromObject
11 {
12
13
14
15 public boolean
16 equals(Object obj) {
17 return false;
18 }
19
20
21
22
23
24
25
26
27 public int hashCode() {
28 return 1;
29 }
30
31 class Junk {
32
33
34
35
36 protected void
37 finalize() throws Throwable {}
38 }
39 }
40
41 interface HashEq2 {
42
43
44
45
46 public int hashCode();
47
48
49
50
51 @Deprecated
52 public String toString();
53
54 @SuppressWarnings("")
55
56
57
58 @Deprecated
59 public boolean equals(Object a);
60
61 @SuppressWarnings("")
62
63
64
65 public HashEq2 clone(Object a);
66 }
67
68 enum enum3 {
69 B;
70
71
72
73
74 public String toString(){
75 return "B";
76 }
77
78 private static void test() {}
79 }