1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 package com.puppycrawl.tools.checkstyle.checks.coding.magicnumber;
18 public class InputMagicNumberIgnoreHashCodeMethod2 {
19
20
21
22 long l = 0xffffffffL;
23
24
25
26
27 public static final int CONST_PLUS_THREE = +3;
28 public static final int CONST_MINUS_TWO = -2;
29 private int mPlusThree = +3;
30 private int mMinusTwo = -2;
31 private double mPlusDecimal = +3.5;
32 private double mMinusDecimal = -2.5;
33
34
35
36
37 private int hexIntMinusOne = 0xffffffff;
38 private long hexLongMinusOne = 0xffffffffffffffffL;
39 private long hexIntMinValue = 0x80000000;
40 private long hexLongMinValue = 0x8000000000000000L;
41 private int octalIntMinusOne = 037777777777;
42 private long octalLongMinusOne = 01777777777777777777777L;
43 private long octalIntMinValue = 020000000000;
44 private long octalLongMinValue = 01000000000000000000000L;
45
46 public static final int TESTINTVAL = (byte) 0x80;
47
48 public static final java.util.List MYLIST = new java.util.ArrayList() {
49 public int size() {
50
51 return 378;
52 }
53 };
54
55 public final double SpecialSum = 2 + 1e10, SpecialDifference = 4 - java.lang.Math.PI;
56 public final Integer DefaultInit = new Integer(27);
57 public final int SpecsPerDay = 24 * 60 * 60, SpecialRatio = 4 / 3;
58 public final javax.swing.border.Border StdBorder =
59 javax.swing.BorderFactory.createEmptyBorder(3, 3, 3, 3);
60
61 enum MyEnum2IgnoreHashCodeMethod2 {
62 A_2(3),
63 B_2(54);
64
65 private MyEnum2IgnoreHashCodeMethod2(int value) {
66
67 }
68 }
69 }