File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/visualizers/RunningSample.java | File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/util/Calculator.java | |||
Method name: double getErrorPercentage()
|
Method name: double getErrorPercentage()
|
|||
Number of AST nodes: 5 | Number of AST nodes: 5 | |||
1 | double rval = 0.0;↵ | 1 | double rval = 0.0;↵ | |
2 | if (counter == 0) {↵ | 2 | if (count == 0) {↵ | |
3 | return (rval);↵ | 3 | return (rval);↵ | |
4 | }↵ | |||
5 | ↵ | 4 | }↵ | |
6 | rval = (double) errorCount / (double) counter;↵ | 5 | rval = (double) errors / (double) count;↵ | |
7 | return (rval); | 6 | return (rval); | |
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.1 |
Clones location | Clones are in different classes |
Number of node comparisons | 13 |
Number of mapped statements | 5 |
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.6 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | double rval = 0.0; | 1 | double rval = 0.0; | ||||||||||||||||||||||
2 | if (counter == 0) |
| 2 | if (count == 0) | |||||||||||||||||||||
3 | return (rval); | 3 | return (rval); | ||||||||||||||||||||||
4 | rval = (double)errorCount / (double)counter; |
| 4 | rval = (double)errors / (double)count; | |||||||||||||||||||||
5 | return (rval); | 5 | return (rval); |
Row | Violation |
---|---|
1 | Type long of variable counter does not match with type int of variable count |
2 | Type long of variable errorCount does not match with type int of variable errors |
3 | Type long of variable counter does not match with type int of variable count |