StringBuilder result = new StringBuilder(getClass().getName());
result.append('@');
result.append(Integer.toHexString(hashCode()));
result.append(" (eObject:");
result.append(eObject);
result.append(")");
result.append(" (eStructuralFeature: ");
result.append(eStructuralFeature);
result.append(")");
StringBuilder result = new StringBuilder(getClass().getName());
result.append('@');
result.append(Integer.toHexString(hashCode()));
result.append(" (eObject:");
result.append(eObject);
result.append(")");
result.append(" (eStructuralFeature: ");
result.append(eStructuralFeature);
result.append(")");
Clone fragments detected by clone detection tool
File path: /emf-2.4.1/src/org/eclipse/emf/databinding/EObjectObservableList.java
|
|
File path: /emf-2.4.1/src/org/eclipse/emf/databinding/EObjectObservableValue.java
|
Method name: String toString()
|
|
Method name: String toString()
|
Number of AST nodes: 9
|
|
Number of AST nodes: 9
|
|
1 | StringBuilder result = new StringBuilder(getClass().getName());↵ | | 1 | StringBuilder result = new StringBuilder(getClass().getName());↵
|
2 | result.append('@');↵ | | 2 | result.append('@');↵
|
3 | result.append(Integer.toHexString(hashCode()));↵ | | 3 | result.append(Integer.toHexString(hashCode()));↵
|
|
4 | result.append(" (eObject:");↵ | | 4 | result.append(" (eObject:");↵
|
5 | result.append(eObject);↵ | | 5 | result.append(eObject);↵
|
6 | result.append(")");↵ | | 6 | result.append(")");↵
|
|
7 | result.append(" (eStructuralFeature: ");↵ | | 7 | result.append(" (eStructuralFeature: ");↵
|
8 | result.append(eStructuralFeature);↵ | | 8 | result.append(eStructuralFeature);↵
|
9 | result.append(")"); | | 9 | result.append(")");
|
See real code fragment |
|
See real code fragment |
Summary
Number of common nesting structure subtrees | 1 |
Number of refactorable cases | 0 |
Number of non-refactorable cases | 1 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.0 |
Clones location | Clones are in different classes having the same super class |
Number of node comparisons | 81 |
-
{Non-refactorable}
Mapping Summary
Number of mapped statements | 9 |
Number of unmapped statements in the first code fragment | 0 |
Number of unmapped statements in the second code fragment | 0 |
Time elapsed for statement mapping (ms) | 0.0 |
Clone type | Type 2 |
Mapped Statements
ID |
Statement |
|
ID |
Statement |
1 | StringBuilder result = new StringBuilder(getClass().getName()); | | 1 | StringBuilder result = new StringBuilder(getClass().getName()); |
2 | result.append('@'); | | 2 | result.append('@'); |
3 | result.append(Integer.toHexString(hashCode())); | | 3 | result.append(Integer.toHexString(hashCode())); |
4 | result.append(" (eObject:"); | | 4 | result.append(" (eObject:"); |
5 | result.append(eObject); | | 5 | result.append(eObject); |
6 | result.append(")"); | | 6 | result.append(")"); |
7 | result.append(" (eStructuralFeature: "); | | 7 | result.append(" (eStructuralFeature: "); |
8 | result.append(eStructuralFeature); | | 8 | result.append(eStructuralFeature); |
9 | result.append(")"); | | 9 | result.append(")"); |
Precondition Violations (1)
Row |
Violation |
1 | Type java.lang.Class<> of variable getClass() does not match with type java.lang.Class<> of variable getClass() |