public class Part implements Serializable { private String name; private String description; public Part() { } public Part(String name) { this.name = name; } public Part(String name, String description) { this.name = name; this.description = description; } public String getName() { return name; } public String getDescription() { return description; } public void setDescription(String description) { this.description = description
public static class Id implements Serializable { private KeyManyToOneKeyEntity key1; private String key2; public Id(KeyManyToOneKeyEntity key1, String key2) { this.key1 = key1; this.key2 = key2; } public KeyManyToOneKeyEntity getKey1() { return key1; } public void setKey1(KeyManyToOneKeyEntity key1) { this.key1 = key1; } public String getKey2() { return key2; } public void setKey2(String key2) { this.key2 = key2
Clone fragments detected by clone detection tool
File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/collection/backref/map/compkey/Part.java File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/hql/KeyManyToOneEntity.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public class Part implements Serializable {
1
public static class Id implements Serializable {
2
	private String name;
2
		private KeyManyToOneKeyEntity key1;
3
	private String description;
3
		private String key2;
4
	public Part() {
4
		public 
5
	}
6
	public Part(String name) {
5
Id(KeyManyToOneKeyEntity key1, String key2) {
7
		this.name = name;
6
			this.
7
key1 = key1;
8
			this.key2 = key2;
8
	}
9
		}
9
	public Part(String name, String description) {
10
		public 
10
		this.name = name;
11
		this.description = description
11
KeyManyToOneKeyEntity getKey1() {
12
;
12
			return key1;
13
	}
13
		}
14
	public String getName() {
14
		public 
15
		return name
15
void setKey1(KeyManyToOneKeyEntity key1) {
16
;
16
			this.key1 = key1;
17
	}
17
		}
18
	public String getDescription() {
18
		public String getKey2() {
19
		return description;
19
			return key2;
20
	}
20
		}
21
	public void setDescription(String description) {
21
		public void setKey2(String key2) {
22
		this.description = description
22
			this.key2 = key2
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