public class ChildInfo {
private Long id;
private Child owner;
private String info;
public ChildInfo() {
}
public ChildInfo(String info) {
this.info = info;
}
public Long getId() {
return id;
}
public Child getOwner() {
return owner;
}
public void setOwner(Child owner) {
this.owner = owner;
}
public String getInfo() {
return info;
}
public void setInfo(String info) {
this.info = info;
public class Immutable {
private String foo;
private String bar;
private String id;
public String getFoo() {
return foo;
}
public void setFoo(String foo) {
this.foo = foo;
}
public String getBar() {
return bar;
}
public void setBar(String bar) {
this.bar = bar;
}
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
Clone fragments detected by clone detection tool
File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/jpa/cascade/ChildInfo.java
|
|
File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/legacy/Immutable.java
|
Method name:
|
|
Method name:
|
Number of AST nodes: 0
|
|
Number of AST nodes: 0
|
|
1 | public class ChildInfo {
↵ | | 1 | public class Immutable {↵
|
2 | private Long id;↵ | | 2 | private ↵
|
3 | private Child owne↵ | | 3 | String foo;↵
|
4 | r;
↵ | | 4 | private String bar;↵
|
5 | private String info;↵ | | 5 | private String i↵
|
6 |
↵ | | 6 | d;↵
|
| | | 7 | ↵
|
7 | public ChildInfo() {↵ | | 8 | public ↵
|
8 | }↵ | | |
|
|
9 | public ChildInf↵ | | 9 | String getFoo() {↵
|
| | | 10 | return foo;↵
|
| | | 11 | }↵
|
| | | 12 | ↵
|
10 | o(String info) {
↵ | | 13 | public void setFoo(String foo) {↵
|
11 | this.info = info;
↵ | | 14 | this.foo = foo;↵
|
12 | }↵ | | 15 | }↵
|
13 |
↵ | | |
|
| | | 16 | ↵
|
14 | public Long getId() {↵ | | 17 | public ↵
|
15 | return id;↵ | | |
|
16 | }↵ | | |
|
|
17 | public Child getOwner() {
↵ | | 18 | String getBar() {↵
|
18 | return owner;
↵ | | 19 | return bar;↵
|
19 | }↵ | | 20 | }↵
|
20 |
↵ | | |
|
| | | 21 | ↵
|
21 | public void setOwner(Child owner) {
↵ | | 22 | public void setBar(String bar) {↵
|
22 | this.owner = owner;
↵ | | 23 | this.bar = bar;↵
|
23 | }↵ | | 24 | }↵
|
24 |
↵ | | |
|
| | | 25 | ↵
|
25 | public String getInfo() {
↵ | | 26 | public String getId() {↵
|
26 | return info;↵ | | 27 | return i↵
|
27 | }↵ | | |
|
28 |
↵ | | 28 | d;↵
|
| | | 29 | }↵
|
| | | 30 | ↵
|
29 | public void setInfo(String info) {
↵ | | 31 | public void setId(String id) {↵
|
30 | this.info = info;
↵ | | 32 | this.id = id;↵
|
31 | | | 33 |
|
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 |