public class SerializableData implements Serializable
{
private String payload;
public SerializableData(String payload)
{
this.payload = payload;
}
public String getPayload()
{
return payload;
}
public void setPayload(String payload)
{
this.payload = payload
public class Employee {
private String id;
public Employee() {
}
public Employee(String id) {
this.id = id;
}
public String getId() {
return id;
}
public void setId(String id) {
this.id = id
Clone fragments detected by clone detection tool
File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/lob/SerializableData.java
|
|
File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/unconstrained/Employee.java
|
Method name:
|
|
Method name:
|
Number of AST nodes: 0
|
|
Number of AST nodes: 0
|
|
1 | public class SerializableData implements Serializable↵ | | 1 | public class ↵
|
2 | {↵ | | |
|
3 | ↵ | | 2 | Employee {↵
|
| | | 3 | ↵
|
4 | private String payload;↵ | | 4 | private String id;↵
|
|
5 | public SerializableData(String payload)↵ | | 5 | public ↵
|
6 | {↵ | | |
|
7 | this.payload = payload;↵ | | |
|
8 | }↵ | | |
|
|
9 | public String getPayload()↵ | | |
|
10 | {↵ | | |
|
11 | return payload;↵ | | |
|
12 | }↵ | | |
|
|
13 | ↵ | | 6 | Employee() {↵
|
| | | 7 | }↵
|
|
| | | 8 | public Employee(String id) {↵
|
| | | 9 | this.id = id;↵
|
| | | 10 | }↵
|
|
| | | 11 | public String getId() {↵
|
| | | 12 | return id;↵
|
| | | 13 | }↵
|
| | | 14 | ↵
|
|
14 | public void setPayload(String payload)↵ | | 15 | public void setId(String ↵
|
15 | {↵ | | |
|
16 | this.payload = payloa↵ | | 16 | id) {↵
|
17 | d | | 17 | this.id = id
|
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 |