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 C2 extends B { private String address; private C1 c1; private String c2Name; private Collection c1s = new ArrayList(); /** * Returns the address. * @return String */ public String getAddress() { return address; } /** * Sets the address. * @param address The address to set */ public void setAddress(String address) { this.address = address; } /** * @return Returns the c. */ public C1 getC1() { return c1; } /** * @param c The c to set. */ public void setC1(C1 c) { this.c1 = c; } /** * @return Returns the cs. */ public Collection getC1s() { return c1s; } /** * @param cs The cs to set. */ public void setC1s(Collection cs) { this.c1s = cs; } public String getC2Name() { return c2Name; } public void setC2Name(String name) { c2Name = name;
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/legacy/C2.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public class Contact implements Serializable
1
public class C2 extends 
2
{
3
   /** The serialVersionUID */
4
   private static final long serialVersionUID = 1L;
5
   
6
   Integer id;
7
  
2
B {
3
	private String address;
4
	private C1 c1;
8
 String name;
5
	private String c2Name;
9
   String tlf;
10
   Customer customer;
11
   
12
   public Contact()
13
   {
14
      
15
   }
16
   
17
   public Integer getId()
18
   {
19
      return id;
20
   }
21
   public void setId(Integer id)
22
   {
23
      this.id = id;
24
   }
25
   public String getName()
26
   {
27
      return name;
28
   }
29
   
30
   public void setName(String name)
31
   {
32
      this.name = name;
33
   }
34
   
35
   public String getTlf()
36
   {
37
      return tlf;
38
   }
39
   
40
   public void setTlf(String tlf)
41
   {
42
      this.tlf = tlf;
43
   }
44
   
45
   public Customer
6
	private Collection c1s = new ArrayList();
7
	/**
8
	 * Returns the address.
9
	 * @return String
10
	 */
11
	public String getAddress() {
12
		return address;
13
	}
14
	
15
	/**
16
	 * Sets the address.
17
	 * @param address The address to set
18
	 */
19
	public void setAddress(String address) {
20
		this.address = address;
21
	}
22
	
23
	/**
24
	 * @return Returns the c.
25
	 */
26
	public C1 getC1() {
27
		return c1;
28
	}
29
	/**
30
	 * @param c The c to set.
31
	 */
32
	public void setC1(C1 c) {
33
		this.c1 = c;
34
	}
35
	/**
36
	 * @return Returns the cs.
37
	 */
38
	public Collection getC1s() {
39
		return c1s;
40
	}
41
	/**
42
	 * @param cs The cs to set.
43
	 */
44
	public void setC1s(Collection cs) {
45
		this.c1s = cs;
46
	}
46
 getCustomer()
47
	public String getC2Name()
47
   {
48
      
48
 {
49
return customer;
49
		return c
50
   }
51
   
52
   
50
2Name;
51
	}
53
public void setCustomer(Customer customer)
52
	public void setC
54
   {
55
      this.custo
53
2Name(String name) {
56
mer = customer;
54
		c2Name = 
57
   
55
name;
56
	
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