File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/engine/util/FunctionParser.java | File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/engine/util/FunctionParser.java | |||
Method name: LinkedList parseParams(StringReader)
|
Method name: Object makeFunction(StringReader)
|
|||
Number of AST nodes: 6 | Number of AST nodes: 5 | |||
1 | buffer.append(current[0]);↵ | |||
2 | if (reader.read(current) == 0) {↵ | 1 | if (reader.read(current) == 0) {↵ | |
3 | break;↵ | 2 | break;↵ | |
4 | }↵ | 3 | }↵ | |
5 | previous = ' ';↵ | 4 | previous = ' ';↵ | |
6 | buffer.append(current[0]);↵ | 5 | buffer.append(current[0]);↵ | |
7 | continue; | 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 declared in the same class |
Number of node comparisons | 18 |
Number of mapped statements | 5 |
Number of unmapped statements in the first code fragment | 1 |
Number of unmapped statements in the second code fragment | 0 |
Time elapsed for statement mapping (ms) | 3.7 |
Clone type | Type 3 |
ID | Statement | ID | Statement | |||||||
---|---|---|---|---|---|---|---|---|---|---|
10 | buffer.append(current[0]); | 11 | buffer.append(current[0]); | |||||||
11 | if (reader.read(current) == 0) | 8 | if (reader.read(current) == 0) | |||||||
12 | break; |
| 9 | break; | ||||||
13 | previous = ' '; | 10 | previous = ' '; | |||||||
14 | buffer.append(current[0]); |
| | |||||||
15 | continue; |
| 12 | continue; |
Row | Violation |
---|---|
1 | Statement break; without innermost loop |
2 | Statement break; without innermost loop |
3 | Unmatched statement buffer.append(current[0]); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted |
4 | Statement continue; without innermost loop |
5 | Statement continue; without innermost loop |