int inputLength = input.length();
grow(inputLength);
int outputPos = 0;
int inputPos = 0;
int inputLength = input.length();
grow(inputLength);
int outputPos = 0;
int inputPos = 0;
Clone fragments detected by clone detection tool
File path: /emf-2.4.1/src/org/eclipse/emf/ecore/xmi/impl/XMLSaveImpl.java
|
|
File path: /emf-2.4.1/src/org/eclipse/emf/ecore/xmi/impl/XMLSaveImpl.java
|
Method name: String convert(String)
|
|
Method name: String convertText(String)
|
Number of AST nodes: 4
|
|
Number of AST nodes: 4
|
|
1 | int inputLength = input.length();↵ | | 1 | int inputLength = input.length();↵
|
2 | grow(inputLength);↵ | | 2 | grow(inputLength);↵
|
3 | int outputPos = 0;↵ | | 3 | int outputPos = 0;↵
|
4 | int inputPos = 0; | | 4 | int inputPos = 0;
|
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 declared in the same class |
Number of node comparisons | 10 |
-
{Non-refactorable}
Mapping Summary
Number of mapped statements | 4 |
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 1 |
Mapped Statements
ID |
Statement |
|
ID |
Statement |
2 | int inputLength = input.length(); | | 3 | int inputLength = input.length(); |
3 | grow(inputLength); | | 4 | grow(inputLength); |
4 | int outputPos = 0; | | 5 | int outputPos = 0; |
5 | int inputPos = 0; | | 6 | int inputPos = 0; |
Precondition Violations (1)
Row |
Violation |
1 | Clone fragment #1 returns variables inputLength, inputPos, outputPos , while Clone fragment #2 returns variables inputLength, inputPos, outputPos |