public class User { private Long id; private String userName; private Human human; private List permissions; public Long getId() { return id; } public void setId(Long id) { this.id = id; } public String getUserName() { return userName; } public void setUserName(String userName) { this.userName = userName; } public Human getHuman() { return human; } public void setHuman(Human human) { this.human = human; } public List getPermissions() { return permissions; } public void setPermissions(List permissions) { this.permissions = permissions
public class C2 extends B { private String address; private C1 c1; private String c2Name; private Collection c1s = new ArrayList(); /** * Returns the address. * @return String */ public String getAddress() { return address; } /** * Sets the address. * @param address The address to set */ public void setAddress(String address) { this.address = address; } /** * @return Returns the c. */ public C1 getC1() { return c1; } /** * @param c The c to set. */ public void setC1(C1 c) { this.c1 = c; } /** * @return Returns the cs. */ public Collection getC1s() { return c1s; } /** * @param cs The cs to set. */ public void setC1s(Collection cs) { this.c1s = cs; } public String getC2Name() { return c2Name; } public void setC2Name(String name) { c2Name = name
Clone fragments detected by clone detection tool
File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/hql/User.java File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/legacy/C2.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public class User {
1
public class C2 extends B {
2
	private Long id
2
	private String address;
3
;
3
	private C1 c1;
4
	private String userName;
4
	private String c2Name;
5
	private Human human;
5
	private 
6
	private List permissions;
6
Collection c1s = new ArrayList();
7
	/**
8
	 * Returns the address.
9
	 * @return String
10
	 */
7
	public Long getId() {
11
	public String getAddress() {
8
		return id;
12
		return 
9
	}
13
address;
14
	}
15
	
16
	/**
17
	 * Sets the address.
18
	 * @param address The address to set
19
	 */
10
	public void setId(Long id) {
20
	public void setAddress(String address) {
11
		this.id = id;
21
		this.
12
	}
13
	public String getUserName() {
14
		return userName;
15
	}
16
	public void setUserName(String userName) {
17
		this.userName = userName;
18
	}
19
	public Human getHuman
22
address = address;
23
	}
24
	
25
	/**
26
	 * @return Returns the c.
27
	 */
28
	public C1 getC1() {
29
		return c1;
30
	}
31
	/**
32
	 * @param c The c to set.
33
	 */
34
	public void setC1(C1 c) {
35
		this.c1 = c;
36
	}
37
	/**
38
	 * @return Returns the cs.
39
	 */
20
() {
40
	public Collection getC1s() {
21
		return human;
41
		return c1s;
22
	}
42
	}
23
	public void setHuman(Human human) {
43
	
24
		this.human = human;
25
	}
26
	public List getPermissions
44
/**
45
	 * @param cs The cs to set.
46
	 */
47
	public void setC1s(Collection cs) {
48
		this.c1s = cs;
49
	}
27
() {
50
	public String getC2Name() {
28
		return permissions;
51
		return c2Name;
29
	}
52
	}
30
	
31
	public void setPermissions(List permissions) {
53
	public void set
32
		this.permissions = permissions
54
C2Name(String name) {
55
		c2Name = name
Summary
Number of common nesting structure subtrees0
Number of refactorable cases0
Number of non-refactorable cases0
Time elapsed for finding largest common nesting structure subtrees (ms)0.0
Clones location
Number of node comparisons0