public class Value { private Long id; private Definition definition; private LocalizedStrings localizedStrings = new LocalizedStrings(); private Value() { } public Value(Definition definition) { this(); this.definition = definition; definition.getValues().add( this ); } public Long getId() { return id; } public void setId(Long id) { this.id = id; } public Definition getDefinition() { return definition; } public void setDefinition(Definition definition) { this.definition = definition; } public LocalizedStrings getLocalizedStrings() { return localizedStrings; } public void setLocalizedStrings(LocalizedStrings localizedStrings) { this.localizedStrings = localizedStrings
public class Person { private String name; private Date dob; private String currentAddress; Person() {} public Person(String name, Date dob, String address) { this.name = name; this.dob = dob; this.currentAddress = address; } public Date getDob() { return dob; } public void setDob(Date dob) { this.dob = dob; } public String getName() { return name; } public void setName(String name) { this.name = name; } public String getCurrentAddress() { return currentAddress; } public void setCurrentAddress(String currentAddress) { this.currentAddress = currentAddress
Clone fragments detected by clone detection tool
File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/component/cascading/collection/Value.java File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/timestamp/Person.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public class Value {
1
public class Person {
2
	private Long id;
2
	private 
3
	private Definition definition;
3
String name;
4
	private Date dob;
4
	private LocalizedStrings localizedStrings = new LocalizedStrings();
5
	private 
5
	private Value() {
6
	}
7
	public Value(Definition definition
6
String currentAddress;
7
	Person() {}
8
) {
8
	public Person(String name, Date dob, String address) {
9
		this();
9
		this
10
		this.definition = definition;
11
		definition.getValues().add( this );
12
	}
13

10
.name = name;
11
		this.dob = dob;
12
		this.currentAddress = address;
13
	}
14
	public Long getId() {
14
	public Date getDob() {
15
		return id;
15
		return 
16
	}
17

16
dob;
17
	}
18
	public void setId(Long id) {
18
	public void setDob(Date dob) {
19
		this.id = id;
19
		this.
20
	}
21
	public Definition getDefinition
20
dob = dob;
21
	}
22
() {
22
	public String getName() {
23
		return definition;
23
		return 
24
	}
25
	public void setDefinition(Definition definition
24
name;
25
	}
26
) {
26
	public void setName(String name) {
27
		this.definition = definition;
27
		this.
28
	}
29
	public Localized
28
name = name;
29
	}
30
Strings getLocalizedStrings() {
30
	public String getCurrentAddress() {
31
		return localizedStrings;
31
		return currentAddress;
32
	}
32
	}
33

34
	public void setLocalizedStrings(LocalizedStrings localizedStrings) {
33
	public void setCurrentAddress(String currentAddress) {
35
		this.localizedStrings = localizedStrings
34
		this.currentAddress = currentAddress
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