public class ProxyBean {
private String someString;
private long someLong;
public String getSomeString() {
return someString;
}
public void setSomeString(String someString) {
this.someString = someString;
}
public long getSomeLong() {
return someLong;
}
public void setSomeLong(long someLong) {
this.someLong = someLong
public class Z {
private long id;
private W w;
/**
*
*/
public Z() {
}
/**
* @return
*/
public long getId() {
return id;
}
/**
* @return
*/
public W getW() {
return w;
}
/**
* @param l
*/
public void setId(long l) {
id = l;
}
/**
* @param w
*/
public void setW(W w) {
this.w = w
Clone fragments detected by clone detection tool
File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/bytecode/ProxyBean.java
|
|
File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/legacy/Z.java
|
Method name:
|
|
Method name:
|
Number of AST nodes: 0
|
|
Number of AST nodes: 0
|
|
1 | public class ProxyBean {
↵ | | 1 | public class Z {↵
|
|
2 | private String someString;↵ | | 2 | private ↵
|
3 | private long someLong;↵ | | |
|
|
|
4 | public String getSomeString↵ | | 3 | long id;↵
|
| | | 4 | private W w;↵
|
|
| | | 5 | /**↵
|
| | | 6 | * ↵
|
| | | 7 | */↵
|
| | | 8 | public Z() {↵
|
| | | 9 | }↵
|
|
|
| | | 10 | /**↵
|
| | | 11 | * @return↵
|
| | | 12 | */↵
|
5 | () {
↵ | | 13 | public long getId() {↵
|
6 | return someString;↵ | | 14 | return ↵
|
7 | }↵ | | |
|
|
8 | public void setSomeString(String someString↵ | | 15 | id;↵
|
| | | 16 | }↵
|
|
| | | 17 | /**↵
|
| | | 18 | * @return↵
|
| | | 19 | */↵
|
9 | ) {
↵ | | 20 | public W getW() {↵
|
10 | this.someString = someString;↵ | | 21 | ↵
|
11 | }↵ | | |
|
|
|
12 | public long getSomeL↵ | | 22 | return w;↵
|
| | | 23 | }↵
|
|
| | | 24 | /**↵
|
| | | 25 | * @param l↵
|
| | | 26 | */↵
|
13 | ong() {
↵ | | 27 | public void setId(long l) {↵
|
14 | return someLong;↵ | | 28 | ↵
|
15 | }↵ | | |
|
|
16 | public void setSomeLong(long someLong↵ | | 29 | id = l;↵
|
| | | 30 | }↵
|
|
| | | 31 | /**↵
|
| | | 32 | * @param w↵
|
| | | 33 | */↵
|
17 | ) {
↵ | | 34 | public void setW(W w) {↵
|
18 | this.someLong = someLong | | 35 | this.w = w
|
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 |