public class Person { private Long id; private String firstName; private String lastName; public Person() { } public Person(String firstName, String lastName) { this.firstName = firstName; this.lastName = lastName; } public Long getId() { return id; } public void setId(Long id) { this.id = id; } public String getFirstName() { return firstName; } public void setFirstName(String firstName) { this.firstName = firstName; } public String getLastName() { return lastName; } public void setLastName(String lastName) { this.lastName = lastName;
public class Document { private String text; private String name; private Date lastModified; Document() {} public Document(String text, String name) { this.text = text; this.name = name; } public String getName() { return name; } public void setName(String name) { this.name = name; } public String getText() { return text; } public void setText(String text) { this.text = text; } public Date getLastModified() { return lastModified; } void setLastModified(Date lastModified) { this.lastModified = lastModified;
Clone fragments detected by clone detection tool
File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/jdbc/Person.java File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/stateless/Document.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public class Person {
1
public class Document {
2
	
2
	
3
private Long id;
3
	private String text;
4
	private String firstName;
4
	private String name;
5
	private String lastName;
5
	private 
6
	public Person
6
Date lastModified;
7
() {
7
	Document() {
8
	}
8
}
9
	
9
	public Person(String firstName, String lastName) {
10
	public Document(String text, String name) {
10
		this.firstName = firstName;
11
		this.text = text;
11
		this.lastName = lastName;
12
		this.name = name;
12
	}
13
	}
13
	public Long getId() {
14
	public String getName() {
14
		return id;
15
		return name;
15
	}
16
	}
16
	public void setId(Long id) {
17
	public void set
17
		this.id = id
18
Name(String name) {
18
;
19
		this.name = name;
19
	}
20
	}
20
	public String getFirstName() {
21
	public String getText() {
21
		return firstName;
22
		return text;
22
	}
23
	}
23
	public void setFirstName(String firstName) {
24
	public void set
24
		this.firstName = firstName
25
Text(String text) {
25
;
26
		this.text = text;
26
	}
27
	}
27
	public String getLastName() {
28
	public Date getLastModified() {
28
		return lastName;
29
		return last
29
	}
30
	public void setLastName(String lastName
30
Modified;
31
	}
31
) {
32
	void setLastModified(Date lastModified) {
32
		this.lastName = lastName;
33
		this.lastModified = lastModified;
33
	
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