public class Contact implements Serializable { /** The serialVersionUID */ private static final long serialVersionUID = 1L; Integer id; String name; String tlf; Customer customer; public Contact() { } public Integer getId() { return id; } public void setId(Integer id) { this.id = id; } public String getName() { return name; } public void setName(String name) { this.name = name; } public String getTlf() { return tlf; } public void setTlf(String tlf) { this.tlf = tlf; } public Customer getCustomer() { return customer; } public void setCustomer(Customer customer) { this.customer = customer
public class Stock { private Long id; private String tradeSymbol; private Valuation currentValuation; private Set valuations = new HashSet(); public Long getId() { return id; } public void setId(Long id) { this.id = id; } public String getTradeSymbol() { return tradeSymbol; } public void setTradeSymbol(String tradeSymbol) { this.tradeSymbol = tradeSymbol; } public Valuation getCurrentValuation() { return currentValuation; } public void setCurrentValuation(Valuation currentValuation) { this.currentValuation = currentValuation; } public Set getValuations() { return valuations; } public void setValuations(Set valuations) { this.valuations = valuations
Clone fragments detected by clone detection tool
File path: /hibernate-distribution-3.3.2.GA/project/cache-jbosscache2/src/test/java/org/hibernate/test/cache/jbc2/functional/Contact.java File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/entitymode/multi/Stock.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public class Contact implements Serializable
1
public class 
2
{
3
   /** The serialVersionUID */
4
   private static final long serialVersionUID = 1L;
5
   
6
   Integer id;
7
   String name;
8
   String tlf;
9
   Customer customer;
10
   
11
   public Contact()
12
   {
13
      
14
   }
15
   
16
   public Integer
2
Stock {
3
	private Long id;
4
	private String tradeSymbol;
5
	private Valuation currentValuation;
6
	private Set valuations = new HashSet();
17
 getId()
7
	public Long getId()
18
   {
19
      return id;
20
   }
21
   
8
 {
9
		return id;
10
	}
22
public void setId(Integer id)
11
	public void setId(
23
   {
24
      this.id = id;
25
   }
26
   
12
Long id) {
13
		this.id = id;
14
	}
27
public String getName()
15
	public String get
28
   {
29
      return name;
30
   }
31
   
32
   
16
TradeSymbol() {
17
		return tradeSymbol;
18
	}
33
public void setName(String name)
19
	public void set
34
   {
35
      this.name = name;
36
   }
37
   
38
   public String getTlf()
39
   {
40
      return tlf;
41
   }
42
   
43
   public void setTlf(String tlf)
44
   {
45
      this.tlf = tlf;
46
   }
47
   
48
   public Customer getCustomer()
49
   {
50
      return customer;
51
   }
52
   
53
   public void setCustomer(Customer customer)
54
   {
55
      this.customer = customer
20
TradeSymbol(String tradeSymbol) {
21
		this.tradeSymbol = tradeSymbol;
22
	}
23
	public Valuation getCurrentValuation() {
24
		return currentValuation;
25
	}
26
	public void setCurrentValuation(Valuation currentValuation) {
27
		this.currentValuation = currentValuation;
28
	}
29
	public Set getValuations() {
30
		return valuations;
31
	}
32
	public void setValuations(Set valuations) {
33
		this.valuations = valuations
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