public class Address { private Long id; private String info; private Set suites = new HashSet(); public Address() { } public Address(String info) { this.info = info; } public Long getId() { return id; } public void setId(Long id) { this.id = id; } public String getInfo() { return info; } public void setInfo(String info) { this.info = info; } public Set getSuites() { return suites; } public void setSuites(Set suites) { this.suites = suites;
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/deletetransient/Address.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 Address {
1
public class MoreCrazyIdFieldNameStuffEntity {
2
	private Long id;
2
	private Long 
3
	private String info;
4
	private Set suites = new HashSet();
5
	public Address
3
moreCrazyIdFieldNameStuffEntity;
4
	private HeresAnotherCrazyIdFieldName heresAnotherCrazyIdFieldName; // silly ain't it ;)
5
	private String name;
6
() {
6
	public MoreCrazyIdFieldNameStuffEntity() {
7
	}
7
	}
8

9
	public Address(String info) {
8
	public MoreCrazyIdFieldNameStuffEntity(String name) {
10
		this.info = info;
9
		this.
11
	}
12
	public Long getId
10
name = name;
11
	}
13
() {
12
	public Long getMoreCrazyIdFieldNameStuffEntity() {
14
		return id;
13
		return 
15
	}
16
	public void setId(Long id
14
moreCrazyIdFieldNameStuffEntity;
15
	}
17
) {
16
	public void setMoreCrazyIdFieldNameStuffEntity(Long moreCrazyIdFieldNameStuffEntity) {
18
		this.id = id;
17
		this.
19
	}
20
	public String getInfo
18
moreCrazyIdFieldNameStuffEntity = moreCrazyIdFieldNameStuffEntity;
19
	}
21
() {
20
	public HeresAnotherCrazyIdFieldName getHeresAnotherCrazyIdFieldName() {
22
		return info;
21
		return 
23
	}
24
	public void setInfo(String info
22
heresAnotherCrazyIdFieldName;
23
	}
25
) {
24
	public void setHeresAnotherCrazyIdFieldName(HeresAnotherCrazyIdFieldName heresAnotherCrazyIdFieldName) {
26
		this.info = info;
25
		this.
27
	}
28
	public Set getSuites
26
heresAnotherCrazyIdFieldName = heresAnotherCrazyIdFieldName;
27
	}
29
() {
28
	public String getName() {
30
		return suites;
29
		return 
31
	}
32

30
name;
31
	}
33
	public void setSuites(Set suites) {
32
	public void setName(String name) {
34
		this.suites = suites;
33
		this.name = name;
35
	
34
	
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