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 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/cascade/ChildInfo.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 ChildInfo {
↵ | | 1 | public class A {↵
|
2 | private Long id;
↵ | | 2 | private Long id;↵
|
3 | private Child owner;↵ | | 3 | private ↵
|
4 | private String info;↵ | | |
|
|
5 | public ChildInfo() {↵ | | |
|
6 | }↵ | | |
|
|
7 | public ChildInfo(String info↵ | | 4 | String name;↵
|
| | | 5 | private E forward;↵
|
| | | 6 | ↵
|
| | | 7 | /**↵
|
| | | 8 | * Returns the id.↵
|
| | | 9 | * @return Long↵
|
| | | 10 | */↵
|
8 | ) {
↵ | | 11 | public Long getId() {↵
|
9 | this.info = info;↵ | | 12 | ↵
|
10 | }↵ | | |
|
11 |
↵ | | 13 | return id;↵
|
| | | 14 | }↵
|
| | | 15 | ↵
|
| | | 16 | /**↵
|
| | | 17 | * Returns the name.↵
|
| | | 18 | * @return String↵
|
| | | 19 | */↵
|
12 | public Long getId() {
↵ | | 20 | public String getName() {↵
|
13 | return id;↵ | | 21 | return ↵
|
14 | }↵ | | |
|
15 |
↵ | | 22 | name;↵
|
| | | 23 | }↵
|
| | | 24 | ↵
|
| | | 25 | /**↵
|
| | | 26 | * Sets the id.↵
|
| | | 27 | * @param id The id to set↵
|
| | | 28 | */↵
|
16 | public Child getOwner() {↵ | | 29 | public void set↵
|
17 | return owner;↵ | | |
|
18 | }↵ | | |
|
|
19 | public void setOwner(Child owner↵ | | 30 | Id(Long id) {↵
|
| | | 31 | this.id = id;↵
|
| | | 32 | }↵
|
| | | 33 | ↵
|
| | | 34 | /**↵
|
| | | 35 | * Sets the name.↵
|
| | | 36 | * @param name The name to set↵
|
| | | 37 | */↵
|
20 | ) {
↵ | | 38 | public void setName(String name) {↵
|
21 | this.owner = owner;↵ | | 39 | this.↵
|
22 | }↵ | | |
|
23 |
↵ | | 40 | name = name;↵
|
| | | 41 | }↵
|
| | | 42 | ↵
|
24 | public String getInfo() {
↵ | | 43 | public E getForward() {↵
|
25 | return info;↵ | | 44 | return ↵
|
26 | }↵ | | |
|
27 |
↵ | | 45 | forward;↵
|
| | | 46 | }↵
|
|
28 | public void setInfo(String info) {
↵ | | 47 | public void setForward(E e) {↵
|
29 | this.info = info;
↵ | | 48 | forward = e;↵
|
30 | | | 49 |
|
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 |