File: A_test970.java

package info (click to toggle)
eclipse-jdt-ui 4.15-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 84,736 kB
  • sloc: java: 721,354; xml: 13,098; jsp: 33; makefile: 5
file content (50 lines) | stat: -rw-r--r-- 908 bytes parent folder | download | duplicates (4)
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
package duplicates_out;

public class A_test970 {
	static class Transaction {
		public void start(String string) {}
		public void run(Action action) {}
		public void run(String string) {}
		public void end() {}
	}
	static class Action {
		public Action(String string) {}
	}

	public void a3()
	{
		Transaction t = new Transaction();
		Action action = new Action(" A.a3");
		String string = "A.a3";
		extracted(t, action, string);
	}

	protected void extracted(Transaction t, Action action, String string) {
		/*[*/
		t.start(string);
		t.run(action);
		t.end();
		/*]*/
	}

	public void a4()
	{
		Transaction t = new Transaction();
		String t_name = "A.a4";

		Action action = new Action(t_name);

		t.start(t_name);
		t.run(t_name);
		t.end();
	}

	public void a6()
	{
		Transaction t = new Transaction();
		String t_name = "A.a6";

		Action action = new Action(t_name);
		extracted(t, action, t_name);
	}
}