public class TextHolder { private Long id; private String theText; public TextHolder() { } public TextHolder(String theText) { this.theText = theText; } public Long getId() { return id; } public void setId(Long id) { this.id = id; } public String getTheText() { return theText; } public void setTheText(String theText) { this.theText = theText
public class Person { private Long id; private String name; public Person(String name) { this.name = name; } public Person() { } /** * @return Returns the id. */ public Long getId() { return id; } /** * @param id The id to set. */ public void setId(Long id) { this.id = id; } /** * @return Returns the name. */ public String getName() { return name; } /** * @param name The name to set. */ 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/readonly/TextHolder.java File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/sql/hand/Person.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public class TextHolder {
1
public class Person {
2
	private Long id;
2
	private Long id;
3
	private String theText;
3
	private String name;
4
	public TextHolder() {
4
	public 
5
	}
6
	public TextHolder(String theText) {
7
		this.theText = theText;
8
	}
5
Person(String name) {
6
		this.name = name;
7
	}
8
	public Person() {
9
	}
10
	/**
11
	 * @return Returns the id.
12
	 */
9
	public Long getId() {
13
	public Long getId() {
10
		return id;
14
		return id;
11
	}
15
	}
16
	/**
17
	 * @param id The id to set.
18
	 */
12
	public void setId(Long id) {
19
	public void setId(Long id) {
13
		this.id = id;
20
		this.id = id;
14
	}
21
	}
22
	/**
23
	 * @return Returns the name.
24
	 */
15
	public String getTheText() {
25
	public String getName() {
16
		return theText;
26
		return 
17
	}
27
name;
28
	}
29
	/**
30
	 * @param name The name to set.
31
	 */
18
	public void setTheText(String theText) {
32
	public void setName(String name) {
19
		this.theText = theText
33
		this.name = name
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