public class BagOwner { private String name; private BagOwner parent; private List children = new ArrayList(); public BagOwner() { } public BagOwner(String name) { this.name = name; } public String getName() { return name; } public void setName(String name) { this.name = name; } public BagOwner getParent() { return parent; } public void setParent(BagOwner parent) { this.parent = parent; } public List getChildren() { return children; } public void setChildren(List children) { this.children = children;
public class MoreCrazyIdFieldNameStuffEntity { private Long moreCrazyIdFieldNameStuffEntity; private HeresAnotherCrazyIdFieldName heresAnotherCrazyIdFieldName; // silly ain't it ;) private String name; public MoreCrazyIdFieldNameStuffEntity() { } public MoreCrazyIdFieldNameStuffEntity(String name) { this.name = name; } public Long getMoreCrazyIdFieldNameStuffEntity() { return moreCrazyIdFieldNameStuffEntity; } public void setMoreCrazyIdFieldNameStuffEntity(Long moreCrazyIdFieldNameStuffEntity) { this.moreCrazyIdFieldNameStuffEntity = moreCrazyIdFieldNameStuffEntity; } public HeresAnotherCrazyIdFieldName getHeresAnotherCrazyIdFieldName() { return heresAnotherCrazyIdFieldName; } public void setHeresAnotherCrazyIdFieldName(HeresAnotherCrazyIdFieldName heresAnotherCrazyIdFieldName) { this.heresAnotherCrazyIdFieldName = heresAnotherCrazyIdFieldName; } public String getName() { return name; } public void setName(String name) { this.name = name;
Clone fragments detected by clone detection tool
File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/collection/bag/BagOwner.java File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/hql/MoreCrazyIdFieldNameStuffEntity.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public class BagOwner {
1
public class MoreCrazyIdFieldNameStuffEntity {
2
	private String name;
2
	private 
3
	private BagOwner parent;
4
	private List children = new ArrayList();
5
	public BagOwner
3
Long moreCrazyIdFieldNameStuffEntity;
4
	private HeresAnotherCrazyIdFieldName heresAnotherCrazyIdFieldName; // silly ain't it ;)
5
	private String name;
6
() {
6
	public MoreCrazyIdFieldNameStuffEntity() {
7
	}
7
	}
8

9
	public BagOwner(String name) {
8
	public MoreCrazyIdFieldNameStuffEntity(String name) {
10
		this.name = name;
9
		this.name = name;
11
	}
10
	}
12

13
	public String getName() {
11
	public Long getMoreCrazyIdFieldNameStuffEntity() {
14
		return name;
12
		return 
15
	}
16

13
moreCrazyIdFieldNameStuffEntity;
14
	}
17
	public void setName(String name) {
15
	public void setMoreCrazyIdFieldNameStuffEntity(Long moreCrazyIdFieldNameStuffEntity) {
18
		this.name = name;
16
		this.
19
	}
20
	public BagOwner getParent
17
moreCrazyIdFieldNameStuffEntity = moreCrazyIdFieldNameStuffEntity;
18
	}
21
() {
19
	public HeresAnotherCrazyIdFieldName getHeresAnotherCrazyIdFieldName() {
22
		return parent;
20
		return 
23
	}
24
	public void setParent(BagOwner parent
21
heresAnotherCrazyIdFieldName;
22
	}
25
) {
23
	public void setHeresAnotherCrazyIdFieldName(HeresAnotherCrazyIdFieldName heresAnotherCrazyIdFieldName) {
26
		this.parent = parent;
24
		this.
27
	}
28
	public List getChildren
25
heresAnotherCrazyIdFieldName = heresAnotherCrazyIdFieldName;
26
	}
29
() {
27
	public String getName() {
30
		return children;
28
		return 
31
	}
32

29
name;
30
	}
33
	public void setChildren(List children) {
31
	public void setName(String name) {
34
		this.children = children;
32
		this.name = name;
35
	
33
	
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