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