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 Person {
private Long id;
private String name;
private String personId;
/**
* @return Returns the id.
*/
public Long getId() {
return id;
}
/**
* @param id The id to set.
*/
public void setId(Long id) {
this.id = id;
}
/**
* @return Returns the name.
*/
public String getName() {
return name;
}
/**
* @param name The name to set.
*/
public void setName(String name) {
this.name = name;
}
public String getPersonId() {
return personId;
}
public void setPersonId(String personId) {
this.personId = personId;
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/propertyref/inheritence/union/Person.java
|
Method name:
|
|
Method name:
|
Number of AST nodes: 0
|
|
Number of AST nodes: 0
|
|
1 | public class Y {↵ | | 1 | public class Person {↵
|
| | | 2 |
↵
|
2 | private Long id;↵ | | 3 | private Long 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 | }↵ | | |
|
| | | 6 | String personId;
↵
|
12 | /**↵ | | 7 | /**
↵
|
13 | * Returns the x.↵ | | 8 | * @return↵
|
14 | * @return String↵ | | 9 | Returns the id.
↵
|
15 | */↵ | | 10 | */
↵
|
16 | public String getX() {↵ | | 11 | public Long getId() {
↵
|
17 | return x;↵ | | 12 | return id;
↵
|
18 | }↵ | | 13 | }↵
|
| | | 14 |
↵
|
19 | /**↵ | | 15 | /**↵
|
20 | * Sets the id.↵ | | 16 |
↵
|
21 | * @param id The id to set↵ | | 17 | * @param id The id to set.
↵
|
22 | */↵ | | 18 | */
↵
|
23 | public void setId(Long id) {↵ | | 19 | public void setId(Long id) {
↵
|
24 | this.id = id;↵ | | 20 | this.id = id;
↵
|
25 | }↵ | | 21 | }↵
|
| | | 22 |
↵
|
26 | /**↵ | | 23 | /**
↵
|
27 | * Sets the x.↵ | | 24 | * @return Returns the name.↵
|
| | | 25 | */↵
|
| | | 26 | public String getName() {↵
|
| | | 27 | return name;↵
|
| | | 28 | }↵
|
| | | 29 | /**
↵
|
28 | * @param x The x to set↵ | | 30 | * @param name The name to set.
↵
|
29 | */↵ | | 31 | */
↵
|
30 | public void setX(String x) {↵ | | 32 | public void setName(String name) {
↵
|
31 | this.x = x;↵ | | 33 | this.↵
|
32 | }↵ | | |
|
|
33 | /**↵ | | |
|
34 | * @return↵ | | |
|
35 | */↵ | | 34 | name = name;↵
|
| | | 35 | }
↵
|
36 | public X getTheX() {↵ | | 36 | public String getPersonId() {
↵
|
37 | return theX;↵ | | 37 | return ↵
|
38 | }↵ | | |
|
|
39 | /**↵ | | |
|
40 | * @param x↵ | | |
|
41 | */↵ | | |
|
42 | public void setTheX(X x↵ | | 38 | personId;↵
|
| | | 39 | }↵
|
|
43 | ) {↵ | | 40 | public void setPersonId(String personId) {
↵
|
44 | theX = x;↵ | | 41 | this.personId = personId;
↵
|
45 | | | 42 |
|
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 |