public class Job { private Long id; private JobBatch batch; private String processingInstructions; private int status; /** GCLIB constructor */ Job() {} protected Job(JobBatch batch) { this.batch = batch; } public Long getId() { return id; } /*package*/ void setId(Long id) { this.id = id; } public JobBatch getBatch() { return batch; } /*package*/ void setBatch(JobBatch batch) { this.batch = batch; } public String getProcessingInstructions() { return processingInstructions; } public void setProcessingInstructions(String processingInstructions) { this.processingInstructions = processingInstructions; } public int getStatus() { return status; } public void setStatus(int status) { this.status = status;
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/testsuite/src/test/java/org/hibernate/test/cascade/Job.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 Job {
1
public class Single implements Serializable {
2
	private Long id;
2
	private String id;
3
	private JobBatch batch;
3
	private String prop;
4
	private String processingInstructions;
4
	private String 
5
	private int status;
6
	/** GCLIB constructor */
7
	Job
5
string;
6
	private Collection several = new HashSet();
7
	/**
8
	 * Returns the id.
9
	 * @return String
10
	 */
8
() {}
11
	public String getId() {
9
	protected Job(JobBatch batch) {
10
		this.batch = batch;
11
	}
12
		return id;
13
	}
14
	
15
	/**
16
	 * Returns the prop.
17
	 * @return String
18
	 */
12
	public Long getId() {
19
	public String getProp() {
13
		return id;
20
		return prop;
14
	}
21
	}
22
	
15
	/*package*/ void setId(Long id) {
23
	/*
16
		this.id = id;
17
	}
18
	public JobBatch getBatch
24
*
25
	 * Returns the several.
26
	 * @return Set
27
	 */
19
() {
28
	public Collection getSeveral() {
20
		return batch;
29
		return several;
21
	}
30
	}
31
	
22
	/*package*/ void setBatch(JobBatch batch) {
32
	/*
23
		this.batch = batch;
24
	}
25
	public String getProcessingInstructions() {
26
		return processingInstructions;
27
	}
28
	public void setProcessingInstructions(String processingInstructions) {
29
		this.processingInstructions = processingInstructions;
30
	}
33
*
34
	 * Sets the id.
35
	 * @param id The id to set
36
	 */
37
	public void setId(String id) {
38
		this.id = id;
39
	}
40
	
41
	/**
42
	 * Sets the prop.
43
	 * @param prop The prop to set
44
	 */
45
	public void setProp(String prop) {
46
		this.prop = prop;
47
	}
48
	
49
	/**
50
	 * Sets the several.
51
	 * @param several The several to set
52
	 */
53
	public void setSeveral(Collection several) {
54
		this.several = several;
55
	}
56
	
57
	/**
58
	 * Returns the string.
59
	 * @return String
60
	 */
31
	public int getStatus() {
61
	public String getString() {
32
		return status;
62
		return st
33
	}
63
ring;
64
	}
65
	
66
	/**
67
	 * Sets the string.
68
	 * @param string The string to set
69
	 */
34
	public void setStatus(int status) {
70
	public void setString(String string) {
35
		this.status = status;
71
		this.string = string;
36
	
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