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
public class Several implements Serializable { private String id; private String prop; private Single single; private String string; /** * Returns the id. * @return String */ public String getId() { return id; } /** * Returns the prop. * @return String */ public String getProp() { return prop; } /** * Returns the single. * @return Single */ public Single getSingle() { return single; } /** * 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 single. * @param single The single to set */ public void setSingle(Single single) { this.single = single; } /** * 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/testsuite/src/test/java/org/hibernate/test/legacy/C2.java File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/legacy/Several.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public class C2 extends B {
1
public class Several implements Serializable {
2
	private String address;
2
	private String id;
3
	private C1 c1;
3
	private String prop;
4
	private String c2Name;
4
	private Single single;
5
	private Collection c1s = new ArrayList();
5
	private String string;
6
	/**
6
	/**
7
	 * Returns the address.
7
	 * Returns the id.
8
	 * @return String
8
	 * @return String
9
	 */
9
	 */
10
	public String getAddress() {
10
	public String getId() {
11
		return address;
11
		return id;
12
	}
12
	}
13
	
13
	
14
	/**
14
	/**
15
	 * Sets the address.
15
	 * Returns the 
16
	 * @param address The address to set
17
	 */
18
	public void setAddress(String address) {
19
		this.address = address
16
prop.
17
	 * @return String
18
	 */
19
	public String getProp() {
20
;
20
		return prop;
21
	}
21
	}
22
	
22
	
23
	/**
23
	/**
24
	 * @return Returns the c.
24
	 * Return
25
	 */
26
	public C1 getC1
25
s the single.
26
	 * @return Single
27
	 */
27
() {
28
	public Single getSingle() {
28
		return c1;
29
		return single;
29
	}
30
	}
31
	
30
	/**
32
	/**
31
	
33
	 * Sets the id.
32
 * @param c The c to set.
34
	 * @param id The id to set
33
	 */
35
	 */
34
	public void setC1(C1 c) {
36
	public void setId(String id) {
35
		this.c1 = c;
37
		this.id = id;
36
	}
38
	}
39
	
37
	/**
40
	/**
38
	 * @return Returns the cs.
41
	 * 
39
	 */
40
	public Collection getC1s() {
41
		return c1s
42
Sets the prop.
43
	 * @param prop The prop to set
44
	 */
45
	public void setProp(String prop) {
42
;
46
		this.prop = prop;
43
	}
47
	}
48
	
44
	/**
49
	/**
45
	
50
	 * Sets the single.
46
 * @param cs The cs to set.
51
	 * @param single The single to set
47
	 */
52
	 */
48
	public void setC1s(Collection cs) {
53
	public void setSingle(Single single) {
49
		this.c1s = cs;
54
		this.
50
	}
55
single = single;
56
	}
57
	
58
	/**
59
	 * Returns the string.
60
	 * @return String
61
	 */
51
	public String getC2Name() {
62
	public String getString() {
52
		return c2Name;
63
		return 
53
	}
64
string;
65
	}
66
	
67
	/**
68
	 * Sets the string.
69
	 * @param string The string to set
70
	 */
54
	public void setC2Name(String name) {
71
	public void setString(String 
55
		c2Name = name
72
string) {
73
		this.string = string
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