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 Single implements Serializable { private String id; private String prop; private String string; private Collection several = new HashSet(); /** * Returns the id. * @return String */ public String getId() { return id; } /** * Returns the prop. * @return String */ public String getProp() { return prop; } /** * Returns the several. * @return Set */ public Collection getSeveral() { return several; } /** * Sets the id. * @param id The id to set */ public void setId(String id) { this.id = id; } /** * Sets the prop. * @param prop The prop to set */ public void setProp(String prop) { this.prop = prop; } /** * Sets the several. * @param several The several to set */ public void setSeveral(Collection several) { this.several = several; } /** * Returns the string. * @return String */ public String getString() { return string; } /** * Sets the string. * @param string The string to set */ public void setString(String string) { this.string = string;
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/Single.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public class Contact implements Serializable
1
public class Single implements Serializable
2
{
3
   /** The serialVersionUID */
4
   private static final l
2
 {
3
	private String id;
4
	private String prop;
5
	private String string;
5
ong serialVersionUID = 1L;
6
	private Collection several
6
   
7
   Integer id;
8
   String name;
9
   String tlf;
10
   Customer customer;
11
   
12
   public Contact()
13
   {
14
      
15
   }
16
   
17
   public Integer getId()
18
   {
19
      return id;
20
   }
21
   
7
 = new HashSet();
8
	/**
9
	 * Returns the id.
10
	 * @return String
11
	 */
12
	public String getId() {
13
		return id;
14
	}
15
	
16
	/**
17
	 * Returns the prop.
18
	 * @return String
19
	 */
20
	public String getProp() {
21
		return prop;
22
	}
23
	
24
	/**
25
	 * Returns the several.
26
	 * @return Set
27
	 */
28
	public Collection getSeveral() {
29
		return several;
30
	}
31
	
32
	/**
33
	 * Sets the id.
34
	 * @param id The id to set
35
	 */
22
public void setId(Integer id)
36
	public void setId(
23
   {
24
      this.id = id;
25
   }
26
   public String getName()
27
   {
28
      return name;
29
   }
30
   
31
   
37
String id) {
38
		this.id = id;
39
	}
40
	
41
	/**
42
	 * Sets the prop.
43
	 * @param prop The prop to set
44
	 */
32
public void setName(String name)
45
	public void setProp(String 
33
   {
34
      this.name = name;
35
   }
36
   
37
   public String getTlf()
38
   {
39
      return tlf;
40
   }
41
   
42
   public void setTlf(String tlf)
43
   {
44
      this.tlf = tlf;
45
   }
46
   
47
   public Customer getCustomer()
48
   {
49
      return customer;
50
   }
51
   
52
   public void setCustomer(Customer customer)
53
   {
54
      this.customer = customer;
55
   
46
prop) {
47
		this.prop = prop;
48
	}
49
	
50
	/**
51
	 * Sets the several.
52
	 * @param several The several to set
53
	 */
54
	public void setSeveral(Collection several) {
55
		this.several = several;
56
	}
57
	
58
	/**
59
	 * Returns the string.
60
	 * @return String
61
	 */
62
	public String getString() {
63
		return string;
64
	}
65
	
66
	/**
67
	 * Sets the string.
68
	 * @param string The string to set
69
	 */
70
	public void setString(String string) {
71
		this.string = string;
72
	
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