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 Customer { public Customer() { super(); } public Customer(String orgName, String custName, String add) { this.orgName = orgName; this.customerName = custName; this.address = add; } private String orgName; private String customerName; private String address; public String getAddress() { return address; } public void setAddress(String address) { this.address = address; } public String getCustomerName() { return customerName; } public void setCustomerName(String customerName) { this.customerName = customerName; } public String getOrgName() { return orgName; } public void setOrgName(String orgName) { this.orgName = orgName;
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/idclass/Customer.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public class Value {
1
public class 
2
	private Long id;
3
	private Definition definition;
4
	private LocalizedStrings localizedStrings = new LocalizedStrings();
5
	private Value() {
6
	}
7
	public Value(Definition definition) {
8
		this();
9
		this.definition = definition;
10
		definition.getValues().add( this );
11
	}
12

2
Customer {
3
	public Customer() {
4
		super();
5
	}
6
	public Customer(String orgName, String custName, String add) {
7
		this.orgName = orgName;
8
		this.customerName = custName;
9
		this.address = add;
10
	}
11
	private String orgName;
12
	private String customerName;
13
	private String address;
13
	public Long getId() {
14
	public String getAddress() {
14
		return id;
15
		return 
15
	}
16

16
address;
17
	}
17
	public void setId(Long id) {
18
	public void setAddress(String address) {
18
		this.id = id;
19
		this.
19
	}
20
	public Definition getDefinition
20
address = address;
21
	}
21
() {
22
	public String getCustomerName() {
22
		return definition;
23
		return 
23
	}
24
	public void setDefinition(Definition definition
24
customerName;
25
	}
25
) {
26
	public void setCustomerName(String customerName) {
26
		this.definition = definition;
27
		this.
27
	}
28
	public Localized
28
customerName = customerName;
29
	}
29
Strings getLocalizedStrings() {
30
	public String getOrgName() {
30
		return localizedStrings;
31
		return 
31
	}
32
	public void setLocalizedStrings(LocalizedStrings localizedStrings
32
orgName;
33
	}
33
) {
34
	public void setOrgName(String orgName) {
34
		this.localizedStrings = localizedStrings;
35
		this.
35
	
36
orgName = orgName;
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