public class Other { private Long id; private String name; public Other() { } public Other(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 class HeresAnotherCrazyIdFieldName { private Long heresAnotherCrazyIdFieldName; private String name; public HeresAnotherCrazyIdFieldName() { } public HeresAnotherCrazyIdFieldName(String name) { this.name = name; } public Long getHeresAnotherCrazyIdFieldName() { return heresAnotherCrazyIdFieldName; } public void setHeresAnotherCrazyIdFieldName(Long 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/connections/Other.java File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/hql/HeresAnotherCrazyIdFieldName.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public class Other {
1
public class HeresAnotherCrazyIdFieldName {
2
	private Long id;
2
	private Long heresAnotherCrazyIdFieldName;
3
	private String name;
3
	private String name;
4

5
	public Other() {
4
	public HeresAnotherCrazyIdFieldName() {
6
	}
5
	}
7

8
	public Other(String name) {
6
	public HeresAnotherCrazyIdFieldName(String name) {
9
		this.name = name;
7
		this.name = name;
10
	}
8
	}
11

12
	public Long getId() {
9
	public Long getHeresAnotherCrazyIdFieldName() {
13
		return id;
10
		return 
14
	}
15
	public void setId(Long id
11
heresAnotherCrazyIdFieldName;
12
	}
16
) {
13
	public void setHeresAnotherCrazyIdFieldName(Long heresAnotherCrazyIdFieldName) {
17
		this.id = id;
14
		this.
18
	}
19

15
heresAnotherCrazyIdFieldName = heresAnotherCrazyIdFieldName;
16
	}
20
	public String getName() {
17
	public String getName() {
21
		return name;
18
		return name;
22
	}
19
	}
23

24
	public void setName(String name) {
20
	public void setName(String name) {
25
		this.name = name;
21
		this.name = name;
26
	
22
	
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