1
2
3
4 package net.sourceforge.pmd.typeresolution.testdata;
5
6 public class Literals {
7 String s = "s";
8 boolean boolean1 = false;
9 boolean boolean2 = true;
10 Object obj = null;
11 byte byte1 = 0;
12 byte byte2 = 0x0F;
13 byte byte3 = -007;
14 short short1 = 0;
15 short short2 = 0x0F;
16 short short3 = -007;
17 char char1 = 0;
18 char char2 = 0x0F;
19 char char3 = 007;
20 char char4 = 'a';
21 int int1 = 0;
22 int int2 = 0x0F;
23 int int3 = -007;
24 int int4 = 'a';
25 long long1 = 0;
26 long long2 = 0x0F;
27 long long3 = -007;
28 long long4 = 0L;
29 long long5 = 0x0Fl;
30 long long6 = -007L;
31 long long7 = 'a';
32 float float1 = 0.0f;
33 float float2 = -10e+01f;
34 float float3 = 0x08.08p3f;
35 float float4 = 0xFF;
36 float float5 = 'a';
37 double double1 = 0.0;
38 double double2 = -10e+01;
39 double double3 = 0x08.08p3;
40 double double4 = 0xFF;
41 double double5 = 'a';
42 }