File path: /jakarta-jmeter-2.3.2/src/org/apache/jorphan/collections/Data.java | File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/control/GenericController.java | |||
Method name: void removeRow(int)
|
Method name: void reInitialize()
|
|||
Number of AST nodes: 4 | Number of AST nodes: 4 | |||
1 | if (index < size) {↵ | |||
2 | setCurrentPos(index);↵ | 1 | resetCurrent();↵ | |
3 | log.debug("Setting currentpos to " + index↵ | 2 | incrementIterCount();↵ | |
4 | );↵ | 3 | setFirst(true);↵ | |
5 | removeRow();↵ | 4 | recove↵ | |
6 | } | 5 |
| |
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.0 |
Clones location | Clones are in different classes |
Number of node comparisons | 12 |
Number of mapped statements | 3 |
Number of unmapped statements in the first code fragment | 0 |
Number of unmapped statements in the second code fragment | 1 |
Time elapsed for statement mapping (ms) | 0.0 |
Clone type | Type 3 |
ID | Statement | ID | Statement | |||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
3 | setCurrentPos(index); |
| 1 | resetCurrent(); | ||||||||||||||||||||
4 | log.debug("Setting currentpos to " + index); |
| 2 | incrementIterCount(); | ||||||||||||||||||||
| 3 | setFirst(true); | ||||||||||||||||||||||
5 | removeRow(); |
| 4 | recoverRunningVersion(); |
Row | Violation |
---|---|
1 | Expression setCurrentPos(index) is a void method call, and thus it cannot be parameterized |
2 | Expression resetCurrent() is a void method call, and thus it cannot be parameterized |
3 | Expression setCurrentPos(index) is a void method call, and thus it cannot be parameterized |
4 | Expression resetCurrent() is a void method call, and thus it cannot be parameterized |
5 | Expression log.debug("Setting currentpos to " + index) is a void method call, and thus it cannot be parameterized |
6 | Expression incrementIterCount() is a void method call, and thus it cannot be parameterized |
7 | Expression log.debug("Setting currentpos to " + index) is a void method call, and thus it cannot be parameterized |
8 | Expression incrementIterCount() is a void method call, and thus it cannot be parameterized |
9 | Expression removeRow() cannot be parameterized, because it has dependencies to/from statements that will be extracted |
10 | Expression removeRow() is a void method call, and thus it cannot be parameterized |
11 | Expression recoverRunningVersion() is a void method call, and thus it cannot be parameterized |