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 | */↵ | | |
|
9 | public Long getId() {↵ | | |
|
10 | return id;↵ | | |
|
11 | }↵ | | |
|
|
12 | /**↵ | | |
|
13 | * Returns the x.↵ | | |
|
14 | * @return String↵ | | |
|
15 | */↵ | | |
|
16 | public String↵ | | 6 | Double length;↵
|
|
17 | getX() {↵ | | 7 | public Integer getId() {
↵
|
18 | return x;↵ | | 8 | return ↵
|
19 | }↵ | | |
|
|
20 | /**↵ | | |
|
21 | * Sets the id.↵ | | |
|
22 | * @param id The id to set↵ | | |
|
23 | */↵ | | 9 | id;↵
|
| | | 10 | }↵
|
| | | 11 |
↵
|
24 | public void setId(Long id) {↵ | | 12 | public void setId(Integer id) {
↵
|
25 | this.id = id;↵ | | 13 | this.id = id;
↵
|
26 | }↵ | | 14 | }↵
|
|
27 | /**↵ | | |
|
28 | * Sets the x.↵ | | |
|
29 | * @param x The x to set↵ | | |
|
30 | */↵ | | |
|
31 | public void setX(String x↵ | | |
|
|
| | | 15 | public Double getLength() {↵
|
| | | 16 | return length;↵
|
| | | 17 | }↵
|
|
32 | ) {↵ | | 18 | public void setLength(Double length) {
↵
|
33 | this.x = x;↵ | | 19 | this.↵
|
34 | }↵ | | |
|
|
35 | /**↵ | | |
|
36 | * @return↵ | | |
|
37 | */↵ | | 20 | length = length;↵
|
| | | 21 | }↵
|
| | | 22 |
↵
|
38 | public X getTheX() {↵ | | 23 | public String getName() {
↵
|
39 | return theX;↵ | | 24 | return ↵
|
40 | }↵ | | |
|
|
41 | /**↵ | | |
|
42 | * @param x↵ | | |
|
43 | */↵ | | 25 | name;↵
|
| | | 26 | }↵
|
| | | 27 |
↵
|
44 | public void setTheX(X x) {↵ | | 28 | public void setName(String name) {
↵
|
45 | theX = x | | 29 | this.name = name
|
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 |