public class SubDetail { private String name; private long id; /** * Returns the id. * @return long */ public long getId() { return id; } /** * Returns the name. * @return String */ public String getName() { return name; } /** * Sets the id. * @param id The id to set */ public void setId(long id) { this.id = id; } /** * Sets the name. * @param name The name to set */ public void setName(String name) { this.name = name;
public class Z { private long id; private W w; /** * */ public Z() { } /** * @return */ public long getId() { return id; } /** * @return */ public W getW() { return w; } /** * @param l */ public void setId(long l) { id = l; } /** * @param w */ public void setW(W w) { this.w = w;
Clone fragments detected by clone detection tool
File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/legacy/SubDetail.java File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/legacy/Z.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public class SubDetail {
1
public class Z {
2
	private String name;
2
	private long id;
3
	private long id;
3
	private W w;
4
	/**
4
	/**
5
	 * Returns the id.
5
	 * 
6
	 */
7
	public Z() {
8
	}
9
	/**
6
	 * @return long
10
	 * @return
7
	 */
11
	 */
8
	public long getId() {
12
	public long getId() {
9
		return id;
13
		return id;
10
	}
14
	}
11
	
12
	/**
15
	/**
13
	 * Returns the name.
16
	 * 
14
	 * @return String
15
	 */
16
	public String getName
17
@return
18
	 */
17
() {
19
	public W getW() {
18
		return name;
20
		return w;
19
	}
21
	}
20
	
21
	/**
22
	/**
22
	 * Sets the id.
23
	 * 
23
	 * @param id The id to set
24
@param l
24
	 */
25
	 */
25
	public void setId(long id) {
26
	public void setId(long l) {
26
		this.id = id;
27
		id = l;
27
	}
28
	}
28
	
29
	/**
29
	/**
30
	 * Sets the name.
30
	 * 
31
	 * @param name The name to set
31
@param w
32
	 */
32
	 */
33
	public void setName(String name) {
33
	public void set
34
		this.name = name
34
W(W w) {
35
;
35
		this.w = w;
36
	
36
	
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