public class MyEntity {
private Long id;
private String name;
private MyEntity other;
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;
}
public MyEntity getOther() {
return other;
}
public void setOther(MyEntity other) {
this.other = other
public class A {
private Long id;
private String name;
private E forward;
/**
* Returns the id.
* @return Long
*/
public Long getId() {
return id;
}
/**
* Returns the name.
* @return String
*/
public String getName() {
return name;
}
/**
* Sets the id.
* @param id The id to set
*/
public void setId(Long id) {
this.id = id;
}
/**
* Sets the name.
* @param name The name to set
*/
public void setName(String name) {
this.name = name;
}
public E getForward() {
return forward;
}
public void setForward(E e) {
forward = e
Clone fragments detected by clone detection tool
File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/jpa/MyEntity.java
|
|
File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/legacy/A.java
|
Method name:
|
|
Method name:
|
Number of AST nodes: 0
|
|
Number of AST nodes: 0
|
|
1 | public class MyEntity {
↵ | | 1 | public class A {↵
|
2 | private Long id;
↵ | | 2 | private Long id;↵
|
3 | private String name;
↵ | | 3 | private String name;↵
|
4 | private MyEntity other;↵ | | 4 | private ↵
|
5 |
↵ | | 5 | E forward;↵
|
| | | 6 | ↵
|
| | | 7 | /**↵
|
| | | 8 | * Returns the id.↵
|
| | | 9 | * @return Long↵
|
| | | 10 | */↵
|
6 | public Long getId() {
↵ | | 11 | public Long getId() {↵
|
7 | return id;
↵ | | 12 | return id;↵
|
8 | }↵ | | 13 | }↵
|
9 |
↵ | | |
|
| | | 14 | ↵
|
| | | 15 | /**↵
|
| | | 16 | * Returns the name.↵
|
| | | 17 | * @return String↵
|
| | | 18 | */↵
|
| | | 19 | public String getName() {↵
|
| | | 20 | return name;↵
|
| | | 21 | }↵
|
| | | 22 | ↵
|
| | | 23 | /**↵
|
| | | 24 | * Sets the id.↵
|
| | | 25 | * @param id The id to set↵
|
| | | 26 | */↵
|
10 | public void setId(Long id) {
↵ | | 27 | public void setId(Long id) {↵
|
11 | this.id = id;
↵ | | 28 | this.id = id;↵
|
12 | }↵ | | 29 | }↵
|
|
13 | public String getName() {↵ | | |
|
14 | return name;↵ | | |
|
15 | }↵ | | |
|
16 |
↵ | | |
|
| | | 30 | ↵
|
| | | 31 | /**↵
|
| | | 32 | * Sets the name.↵
|
| | | 33 | * @param name The name to set↵
|
| | | 34 | */↵
|
17 | public void setName(String name) {
↵ | | 35 | public void setName(String name) {↵
|
18 | this.name = name;
↵ | | 36 | this.name = name;↵
|
19 | }↵ | | 37 | }↵
|
20 |
↵ | | |
|
| | | 38 | ↵
|
21 | public MyEntity getOther() {
↵ | | 39 | public E getForward() {↵
|
22 | return other;↵ | | 40 | return ↵
|
23 | }↵ | | |
|
24 |
↵ | | 41 | forward;↵
|
| | | 42 | }↵
|
|
25 | public void setOther(MyEntity other) {
↵ | | 43 | public void setForward(E e) {↵
|
26 | this.other = other | | 44 | forward = e
|
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 |