File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/modifiers/CounterConfig.java | File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/functions/IterationCounter.java | |||
Method name: void init()
|
Method name: void init()
|
|||
Number of AST nodes: 1 | Number of AST nodes: 1 | |||
1 | perTheadNumber = new ThreadLocal() {↵ | 1 | perThreadInt = new ThreadLocal(){↵ | |
2 | protected synchronized Object initialValue() {↵ | 2 | protected synchronized Object initialValue() {↵ | |
3 | return new Long(getStart());↵ | 3 | return new Integer(0);↵ | |
4 | }↵ | 4 | }↵ | |
5 | }; | 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 | 1 |
Number of mapped statements | 1 |
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.0 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | perTheadNumber = new ThreadLocal() {...}; |
| 1 | perThreadInt = new ThreadLocal() {...}; |
Row | Violation |
---|---|
1 | The refactoring of the clones is infeasible, because classes org.apache.jmeter.modifiers.CounterConfig and org.apache.jmeter.functions.IterationCounter do not have a common superclass |