public static class XX {
private Long id;
private X x;
private XX() {}
public XX(X x) {
this.x = x;
}
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public X getX() {
return x;
}
public void setX(X x) {
this.x = x;
public class Child {
private String name;
private Parent parent;
public Child() {
}
public Child(String name) {
this.name = name;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public Parent getParent() {
return parent;
}
public void setParent(Parent parent) {
this.parent = parent;
Clone fragments detected by clone detection tool
File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/legacy/X.java
|
|
File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/reattachment/Child.java
|
Method name:
|
|
Method name:
|
Number of AST nodes: 0
|
|
Number of AST nodes: 0
|
|
1 | public static class XX {↵ | | 1 | public class Child {
↵
|
2 | private Long id;↵ | | 2 | private ↵
|
3 | private X x;↵ | | |
|
4 | private XX() {}↵ | | |
|
5 | public XX(X x↵ | | 3 | String name;↵
|
| | | 4 | private Parent parent;↵
|
|
| | | 5 | public Child() {↵
|
| | | 6 | }↵
|
|
6 | ) {↵ | | 7 | public Child(String name) {
↵
|
7 | this.x = x;↵ | | 8 | this.↵
|
8 | }↵ | | |
|
9 | ↵ | | 9 | name = name;↵
|
| | | 10 | }↵
|
|
10 | public Long getId() {↵ | | 11 | public String getName() {
↵
|
11 | return id;↵ | | 12 | return ↵
|
12 | }↵ | | |
|
|
13 | ↵ | | 13 | name;↵
|
| | | 14 | }↵
|
|
14 | public void setId(Long id) {↵ | | 15 | public void setName(String name) {
↵
|
15 | this.id = id;↵ | | 16 | this.↵
|
16 | }↵ | | |
|
|
17 | public X getX↵ | | 17 | name = name;↵
|
| | | 18 | }↵
|
|
18 | () {↵ | | 19 | public Parent getParent() {
↵
|
19 | return x;↵ | | 20 | return ↵
|
20 | }↵ | | |
|
|
21 | ↵ | | 21 | parent;↵
|
| | | 22 | }↵
|
|
22 | public void setX(X x) {↵ | | 23 | public void setParent(Parent parent) {
↵
|
23 | this.x = x;↵ | | 24 | this.parent = parent;
↵
|
24 | | | 25 |
|
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 |