public class Master implements Serializable {
private Long id;
private String name;
private Detail detail;
public Detail getDetail() {
return detail;
}
public void setDetail(Detail detail) {
this.detail = detail;
}
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 class Y {
private Long id;
private String x;
private X theX;
/**
* Returns the id.
* @return Long
*/
public Long getId() {
return id;
}
/**
* Returns the x.
* @return String
*/
public String getX() {
return x;
}
/**
* Sets the id.
* @param id The id to set
*/
public void setId(Long id) {
this.id = id;
}
/**
* Sets the x.
* @param x The x to set
*/
public void setX(String x) {
this.x = x;
}
/**
* @return
*/
public X getTheX() {
return theX;
}
/**
* @param x
*/
public void setTheX(X x) {
theX = x;
Clone fragments detected by clone detection tool
File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/formulajoin/Master.java
|
|
File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/legacy/Y.java
|
Method name:
|
|
Method name:
|
Number of AST nodes: 0
|
|
Number of AST nodes: 0
|
|
1 | public class Master implements Serializable {↵ | | 1 | public class Y {↵
|
|
2 | private Long id;↵ | | 2 | private Long id;↵
|
3 | private String name;↵ | | 3 | private String x;↵
|
4 | private Detail detail;↵ | | 4 | private ↵
|
5 | public Detail getDetail↵ | | 5 | X theX;↵
|
| | | 6 | /**↵
|
| | | 7 | * Returns the id.↵
|
| | | 8 | * @return Long↵
|
| | | 9 | */↵
|
6 | () {↵ | | 10 | public Long getId() {↵
|
7 | return detail;↵ | | 11 | return ↵
|
8 | }↵ | | |
|
9 | public void setDetail(Detail detail) {↵ | | |
|
10 | this.detail = detail;↵ | | |
|
11 | }↵ | | 12 | id;↵
|
| | | 13 | }↵
|
|
| | | 14 | /**↵
|
| | | 15 | * Returns the x.↵
|
| | | 16 | * @return String↵
|
| | | 17 | */↵
|
12 | public Long getId() {↵ | | 18 | public String getX() {↵
|
13 | return ↵ | | 19 | return x;↵
|
| | | 20 | }↵
|
|
| | | 21 | /**↵
|
14 | id;↵ | | 22 | * Sets the id.↵
|
15 | }↵ | | 23 | * @param id The id to set↵
|
| | | 24 | */↵
|
16 | public void setId(Long id) {↵ | | 25 | public void setId(Long id) {↵
|
17 | this.id = id;↵ | | 26 | this.id = id;↵
|
18 | }↵ | | 27 | }↵
|
19 | public String getName↵ | | |
|
| | | 28 | /**↵
|
| | | 29 | * Sets the x.↵
|
| | | 30 | * @param x The x to set↵
|
| | | 31 | */↵
|
| | | 32 | public void setX(String x) {↵
|
| | | 33 | this.x = x;↵
|
| | | 34 | }↵
|
|
| | | 35 | /**↵
|
| | | 36 | * @return↵
|
| | | 37 | */↵
|
20 | () {↵ | | 38 | public X getTheX() {↵
|
21 | return name;↵ | | 39 | return theX;↵
|
22 | }↵ | | 40 | }↵
|
23 | public void setName(String name) {↵ | | |
|
24 | this.name = name↵ | | |
|
| | | 41 | /**↵
|
| | | 42 | * @param x↵
|
| | | 43 | */↵
|
| | | 44 | public void setTheX(X x) {↵
|
25 | ;↵ | | 45 | theX = x;↵
|
26 | | | 46 |
|
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 |