View Javadoc

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