File: A_test970.java

package info (click to toggle)
eclipse-jdt-ui 4.10-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 82,480 kB
  • sloc: java: 694,753; xml: 12,788; jsp: 33; makefile: 5
file content (49 lines) | stat: -rw-r--r-- 831 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
package duplicates_in;

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";
		/*[*/
		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);
		// DUPLICATE!!!
		t.start(t_name);
		t.run(action);
		t.end();
	}
}