File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/functions/StringFromFile.java | File path: /jakarta-jmeter-2.3.2/test/src/org/apache/commons/cli/avalon/ClutilTestCase.java | |||
Method name: void setParameters(Collection)
|
Method name: void check(String[], String)
|
|||
Number of AST nodes: 4 | Number of AST nodes: 4 | |||
1 | for (int i = 0; i < values.length; i++) {↵ | 1 | for (int i=0; i< size; i++){↵ | |
2 | if (i > 0) {↵ | 2 | if (i>0) {↵ | |
3 | sb.append(",");↵ | 3 | sb.append(" ");↵ | |
4 | }↵ | |||
5 | sb.append(((CompoundVariable) values[i]).getRawParameters());↵ | |||
6 | ↵ | 4 | }↵ | |
5 | sb.append(((CLOption)clOptions.get(i)).toShortString()); ↵ | |||
7 | } | 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 different classes |
Number of node comparisons | 8 |
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.9 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
6 | for (int i = 0; i < values.length; i++) |
| 6 | for (int i = 0; i < size; i++) | ||||||||||
7 | if (i > 0) | 7 | if (i > 0) | |||||||||||
8 | sb.append(","); |
| 8 | sb.append(" "); | ||||||||||
|
| 9 | sb.append(((CLOption)clOptions.get(i)).toShortString()); | |||||||||||
9 | sb.append(((CompoundVariable)values[i]).getRawParameters()); |
| |
Row | Violation |
---|---|
1 | Unmatched statement sb.append(((CLOption)clOptions.get(i)).toShortString()); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted |
2 | Unmatched statement sb.append(((CompoundVariable)values[i]).getRawParameters()); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted |