File tree 1 file changed +5
-0
lines changed
qulice-checkstyle/src/test/resources/com/qulice/checkstyle/ChecksTest/ConstantUsageCheck
1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,9 @@ public final class Valid {
6
6
private static final Invalid INSTANCE = new Invalid ();
7
7
private static final int [] OTHER_INSTANCE = { 1 , 2 , 3 , 4 };
8
8
private static final int NUMBER = 5 ;
9
+ private static final int DERIVED = 5 * Valid .BASE ;
10
+ private static final int BASE = 1 ;
11
+ private static final int OTHERDERIVED = 2 * Valid .BASE ;
9
12
private static final long serialVersionUID = 1L ;
10
13
private final transient OutputStream stream = new ByteArrayOutputStream ();
11
14
protected String NAME = "DDD" ;
@@ -14,6 +17,8 @@ public final class Valid {
14
17
private static final String NAME = "name" ;
15
18
static {
16
19
System .out .println (INSTANCE .toString ());
20
+ System .out .println (DERIVED .toString ());
21
+ System .out .println (OTHERDERIVED .toString ());
17
22
}
18
23
{
19
24
System .out .println ("Before start" );
You can’t perform that action at this time.
0 commit comments