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
public class Customer { private Long id; private String name; private Collection orders = new ArrayList(); public Customer() { } public Customer(String name) { this.name = name; } public Long getId() { return id; } public void setId(Long id) { this.id = id; } public String getName() { return name; } public void setName(String name) { this.name = name; } public Collection getOrders() { return orders; } public void setOrders(Collection orders) { this.orders = orders
Clone fragments detected by clone detection tool
File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/hql/MoreCrazyIdFieldNameStuffEntity.java File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/keymanytoone/bidir/component/Customer.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public class MoreCrazyIdFieldNameStuffEntity {
1
public class Customer {
2
	private Long moreCrazyIdFieldNameStuffEntity;
2
	private Long 
3
	private HeresAnotherCrazyIdFieldName heresAnotherCrazyIdFieldName; // silly ain't it ;)
4
	private String name;
5
	public MoreCrazyIdFieldNameStuffEntity
3
id;
4
	private String name;
5
	private Collection orders = new ArrayList();
6
() {
6
	public Customer() {
7
	}
7
	}
8

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

11
	public Long getMoreCrazyIdFieldNameStuffEntity() {
13
	public Long getId() {
12
		return moreCrazyIdFieldNameStuffEntity;
14
		return 
13
	}
14
	public void setMoreCrazyIdFieldNameStuffEntity(Long moreCrazyIdFieldNameStuffEntity
15
id;
16
	}
15
) {
17
	public void setId(Long id) {
16
		this.moreCrazyIdFieldNameStuffEntity = moreCrazyIdFieldNameStuffEntity;
18
		this.
17
	}
18
	public HeresAnotherCrazyIdFieldName getHeresAnotherCrazyIdField
19
id = id;
20
	}
19
Name() {
21
	public String getName() {
20
		return heresAnotherCrazyIdFieldName;
22
		return name;
21
	}
23
	}
24

22
	public void setHeresAnotherCrazyIdFieldName(HeresAnotherCrazyIdFieldName heresAnotherCrazyIdFieldName) {
25
	public void setName(String name) {
23
		this.heresAnotherCrazyIdFieldName = heresAnotherCrazyIdFieldName;
26
		this.name = name;
24
	}
27
	}
28

25
	public String getName() {
29
	public Collection getOrders() {
26
		return name;
30
		return 
27
	}
31
orders;
32
	}
33

28
	public void setName(String name) {
34
	public void setOrders(Collection orders) {
29
		this.name = name
35
		this.orders = orders
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