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 Owner implements Serializable {
private Long id;
private String name;
public Owner() {
}
public Owner(String name) {
this.name = name;
}
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name
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/proxy/Owner.java
|
Method name:
|
|
Method name:
|
Number of AST nodes: 0
|
|
Number of AST nodes: 0
|
|
1 | public static class XX {↵ | | 1 | public class Owner implements Serializable {↵
|
2 | private Long id;↵ | | 2 | private Long id;↵
|
3 | private X x;↵ | | 3 | private String name;↵
|
4 | ↵ | | |
|
5 | private XX() {}↵ | | 4 | public Owner() {↵
|
6 | ↵ | | 5 | }↵
|
|
7 | public XX(X x) {↵ | | 6 | public Owner(String name) {↵
|
8 | this.x = x;↵ | | 7 | this.name = name;↵
|
9 | }↵ | | 8 | }↵
|
10 | ↵ | | |
|
11 | public Long getId() {↵ | | 9 | public Long getId() {↵
|
12 | return id;↵ | | 10 | return id;↵
|
13 | }↵ | | 11 | }↵
|
|
14 | public void setId(Long id) {↵ | | 12 | public void setId(Long id) {↵
|
15 | this.id = id;↵ | | 13 | this.id = id;↵
|
16 | }↵ | | 14 | }↵
|
|
17 | public X getX() {↵ | | 15 | public String getName() {↵
|
18 | return x;↵ | | 16 | return name;↵
|
19 | }↵ | | 17 | }↵
|
|
20 | public void setX(X x) {↵ | | 18 | public void setName(String name) {↵
|
21 | this.x = x | | 19 | this.name = name
|
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 |