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