public class MyInterfaceImpl implements MyInterface {
private String key1;
private String key2;
private String name;
public String getKey1() {
return key1;
}
public void setKey1(String key1) {
this.key1 = key1;
}
public String getKey2() {
return key2;
}
public void setKey2(String key2) {
this.key2 = key2;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name
public class Parent {
private Long id;
private Set deleteOrphanChildren;
private Set children;
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public Set getDeleteOrphanChildren() {
return deleteOrphanChildren;
}
public void setDeleteOrphanChildren(Set deleteOrphanChildren) {
this.deleteOrphanChildren = deleteOrphanChildren;
}
public Set getChildren() {
return children;
}
public void setChildren(Set children) {
this.children = children
Clone fragments detected by clone detection tool
File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/abstractembeddedcomponents/cid/MyInterfaceImpl.java
|
|
File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/cascade/Parent.java
|
Method name:
|
|
Method name:
|
Number of AST nodes: 0
|
|
Number of AST nodes: 0
|
|
1 | public class MyInterfaceImpl implements MyInterface {
↵ | | 1 | public class Parent {↵
|
2 | private String key1;↵ | | 2 | private ↵
|
3 | private String key2;↵ | | |
|
4 | private String name;↵ | | |
|
5 |
↵ | | 3 | Long id;↵
|
| | | 4 | private Set deleteOrphanChildren;↵
|
| | | 5 | private Set children;↵
|
|
6 | public String getKey1() {
↵ | | 6 | public Long getId() {↵
|
7 | return key1;↵ | | 7 | return ↵
|
8 | }↵ | | |
|
9 |
↵ | | 8 | id;↵
|
| | | 9 | }↵
|
|
10 | public void setKey1(String key1) {
↵ | | 10 | public void setId(Long id) {↵
|
11 | this.key1 = key1;↵ | | 11 | this.↵
|
12 | }↵ | | |
|
|
13 | public String getKey2↵ | | 12 | id = id;↵
|
| | | 13 | }↵
|
|
14 | () {
↵ | | 14 | public Set getDeleteOrphanChildren() {↵
|
15 | return key2;↵ | | 15 | return ↵
|
16 | }↵ | | |
|
|
17 | public void setKey2(String key2↵ | | 16 | deleteOrphanChildren;↵
|
| | | 17 | }↵
|
|
18 | ) {
↵ | | 18 | public void setDeleteOrphanChildren(Set deleteOrphanChildren) {↵
|
19 | this.key2 = key2;↵ | | 19 | this.↵
|
20 | }↵ | | |
|
|
21 | public String getName↵ | | 20 | deleteOrphanChildren = deleteOrphanChildren;↵
|
| | | 21 | }↵
|
|
22 | () {
↵ | | 22 | public Set getChildren() {↵
|
23 | return name;↵ | | 23 | return ↵
|
24 | }↵ | | |
|
25 |
↵ | | 24 | children;↵
|
| | | 25 | }↵
|
|
26 | public void setName(String name) {
↵ | | 26 | public void setChildren(Set children) {↵
|
27 | this.name = name | | 27 | this.children = children
|
See real code fragment |
|
See real code fragment |
Summary
Number of common nesting structure subtrees | 0 |
Number of refactorable cases | 0 |
Number of non-refactorable cases | 0 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.0 |
Clones location | |
Number of node comparisons | 0 |