File path: /jakarta-jmeter-2.3.2/src/org/apache/jorphan/collections/Data.java | File path: /jakarta-jmeter-2.3.2/src/org/apache/jorphan/collections/Data.java | |||
Method name: String[] getDataAsText()
|
Method name: String[] getDataAsText()
|
|||
Number of AST nodes: 4 | Number of AST nodes: 4 | |||
1 | for (int count = 0; count < elements.length; count++) {↵ | 1 | for (int count = 0; count < elements.length; count++) {↵ | |
2 | temp.append(elements[count]);↵ | 2 | temp.append(getColumnValue(count));↵ | |
3 | if (count + 1 < elements.length) {↵ | 3 | if (count + 1 < elements.length) {↵ | |
4 | temp.append("\t");↵ | 4 | temp.append("\t");↵ | |
5 | }↵ | 5 | }↵ | |
6 | } | 6 | } | |
See real code fragment | See real code fragment |
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.2 |
Clones location | Clones are in the same method |
Number of node comparisons | 9 |
Number of mapped statements | 3 |
Number of unmapped statements in the first code fragment | 1 |
Number of unmapped statements in the second code fragment | 1 |
Time elapsed for statement mapping (ms) | 0.5 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||
---|---|---|---|---|---|---|---|
4 | for (int count = 0; count < elements.length; count++) | 13 | for (int count = 0; count < elements.length; count++) | ||||
5 | temp.append(elements[count]); |
| | ||||
|
| 14 | temp.append(getColumnValue(count)); | ||||
6 | if (count + 1 < elements.length) | 15 | if (count + 1 < elements.length) | ||||
7 | temp.append("\t"); | 16 | temp.append("\t"); |
Row | Violation |
---|---|
1 | Unmatched statement temp.append(elements[count]); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted |
2 | Unmatched statement temp.append(getColumnValue(count)); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted |