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
19 public class InputMagicNumberIgnoreNone2 {
20
21 long l = 0xffffffffL;
22
23
24
25
26 public static final int CONST_PLUS_THREE = +3;
27 public static final int CONST_MINUS_TWO = -2;
28 private int mPlusThree = +3;
29 private int mMinusTwo = -2;
30 private double mPlusDecimal = +3.5;
31 private double mMinusDecimal = -2.5;
32
33
34
35
36 private int hexIntMinusOne = 0xffffffff;
37 private long hexLongMinusOne = 0xffffffffffffffffL;
38 private long hexIntMinValue = 0x80000000;
39 private long hexLongMinValue = 0x8000000000000000L;
40 private int octalIntMinusOne = 037777777777;
41 private long octalLongMinusOne = 01777777777777777777777L;
42 private long octalIntMinValue = 020000000000;
43 private long octalLongMinValue = 01000000000000000000000L;
44 public static final int TESTINTVAL = (byte) 0x80;
45
46 public static final java.util.List MYLIST = new java.util.ArrayList() {
47 public int size() {
48
49 return 378;
50 }
51 };
52
53 public final double SpecialSum = 2 + 1e10, SpecialDifference = 4 - java.lang.Math.PI;
54 public final Integer DefaultInit = new Integer(27);
55 public final int SpecsPerDay = 24 * 60 * 60, SpecialRatio = 4 / 3;
56 public final javax.swing.border.Border StdBorder =
57 javax.swing.BorderFactory.createEmptyBorder(3, 3, 3, 3);
58
59 enum MyEnum2IgnoreNone2 {
60 A_3(3),
61 B_3(54);
62
63 private MyEnum2IgnoreNone2(int value) {
64
65 }
66 }
67 }