File: EvalTypeTests.java

package info (click to toggle)
eclipse-jdt-debug 4.30-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 18,876 kB
  • sloc: java: 234,390; xml: 6,367; makefile: 5
file content (83 lines) | stat: -rw-r--r-- 2,189 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
/*******************************************************************************
 * Copyright (c) 2000, 2005 IBM Corporation and others.
 *
 * This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License 2.0
 * which accompanies this distribution, and is available at
 * https://www.eclipse.org/legal/epl-2.0/
 *
 * SPDX-License-Identifier: EPL-2.0
 * 
 * Contributors:
 *     IBM Corporation - initial API and implementation
 *******************************************************************************/

public class EvalTypeTests {
	
	byte xFieldByte = -2;
	char xFieldChar = (char)-2;
	short xFieldShort = -2;
	int xFieldInt = -2;
	long xFieldLong = -2;
	float xFieldFloat = (float)-2.1;
	double xFieldDouble = -2.1;
	String xFieldString = "minus two";
	boolean xFieldBoolean = true;

	byte yFieldByte = 9;
	char yFieldChar = 9;
	short yFieldShort = 9;
	int yFieldInt = 9;
	long yFieldLong = 9;
	float yFieldFloat = (float)8.6;
	double yFieldDouble = 8.6;
	String yFieldString = "nine";
	boolean yFieldBoolean = false;

	static byte xStaticFieldByte = -1;
	static char xStaticFieldChar = (char)-1;
	static short xStaticFieldShort = -1;
	static int xStaticFieldInt = -1;
	static long xStaticFieldLong = -1;
	static float xStaticFieldFloat = (float)-1.5;
	static double xStaticFieldDouble = -1.5;
	static String xStaticFieldString = "minus one";
	static boolean xStaticFieldBoolean = true;

	static byte yStaticFieldByte = 6;
	static char yStaticFieldChar = 6;
	static short yStaticFieldShort = 6;
	static int yStaticFieldInt = 6;
	static long yStaticFieldLong = 6;
	static float yStaticFieldFloat = (float)6.5;
	static double yStaticFieldDouble = 6.5;
	static String yStaticFieldString = "six";
	static boolean yStaticFieldBoolean = false;

	void test1() {
		System.out.println("Test1 ...");
	}

	static void test2() {
		System.out.println("Test2 ...");
	}
	
	void bar() {
		System.out.println("Tests ...");
	}

	static void foo() {
		System.out.println("Tests ...");
	}
	
	public static void main(String[] args) {
		EvalTypeTests foo = new EvalTypeTests();
		
		System.out.println("Tests ...");
		
		foo.bar();
		
		foo();
		
	}
}