public class MyEntity {
private Long id;
private String name;
public MyEntity() {
}
public MyEntity(String name) {
this.name = name;
}
public Long getId() {
return id;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name
static public class ABean {
public Fum fum;
public Fum fo;
public Fum getFo() {
return fo;
}
public void setFo(Fum fo) {
this.fo = fo;
}
public Fum getFum() {
return fum;
}
public void setFum(Fum fum) {
this.fum = fum
Clone fragments detected by clone detection tool
File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/generatedkeys/select/MyEntity.java
|
|
File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/legacy/FumTest.java
|
Method name:
|
|
Method name:
|
Number of AST nodes: 0
|
|
Number of AST nodes: 0
|
|
1 | public class MyEntity {↵ | | 1 | static public class ↵
|
2 | private Long id;↵ | | |
|
3 | private String name↵ | | 2 | ABean {↵
|
4 | ;↵ | | 3 | public Fum fum;↵
|
|
5 | public MyEntity() {↵ | | 4 | public ↵
|
6 | }↵ | | |
|
|
7 | public MyEntity(String name) {↵ | | |
|
8 | this.name = name↵ | | 5 | Fum fo;↵
|
| | | 6 | public Fum getFo() {↵
|
9 | ;↵ | | 7 | return fo;↵
|
10 | }↵ | | 8 | }↵
|
|
11 | public Long getId() {↵ | | 9 | public ↵
|
12 | return id↵ | | 10 | void setFo(Fum fo) {↵
|
13 | ;↵ | | 11 | this.fo = fo;↵
|
14 | }↵ | | 12 | }↵
|
|
15 | public String getName() {↵ | | 13 | public Fum getFum() {↵
|
16 | return name;↵ | | 14 | return fum;↵
|
17 | }↵ | | 15 | }↵
|
|
18 | public void setName(String name) {↵ | | 16 | public void setFum(Fum fum) {↵
|
19 | this.name = name | | 17 | this.fum = fum
|
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 |