File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/protocol/http/proxy/ProxyControl.java | File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/protocol/http/proxy/ProxyControl.java | |||
Method name: Collection findApplicableElements(JMeterTreeNode, Class, boolean)
|
Method name: Collection findApplicableElements(JMeterTreeNode, Class, boolean)
|
|||
Number of AST nodes: 5 | Number of AST nodes: 4 | |||
1 | if (myClass.isInstance(element)) {↵ | 1 | if (myClass.isInstance(args)) {↵ | |
2 | log.debug("Applicable: " + element.getName());↵ | 2 | ↵ | |
3 | if (ascending) {↵ | 3 | if (ascending) {↵ | |
4 | elements.addFirst(element);↵ | 4 | elements.addFirst(args);↵ | |
5 | } else {↵ | 5 | } else {↵ | |
6 | elements.add(element);↵ | 6 | elements.add(args);↵ | |
7 | }↵ | 7 | }↵ | |
8 | } | 8 | } | |
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.3 |
Clones location | Clones are in the same method |
Number of node comparisons | 16 |
Number of mapped statements | 4 |
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) | 4.0 |
Clone type | Type 3 |
ID | Statement | ID | Statement | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
18 | if (myClass.isInstance(element)) |
| 26 | if (myClass.isInstance(args)) | ||||||||||||||
19 | log.debug("Applicable: " + element.getName()); | | ||||||||||||||||
20 | if (ascending) | 27 | if (ascending) | |||||||||||||||
21 | elements.addFirst(element); |
| 28 | elements.addFirst(args); | ||||||||||||||
else | else | |||||||||||||||||
22 | elements.add(element); |
| 29 | elements.add(args); |
Row | Violation |
---|---|
1 | Type org.apache.jmeter.testelement.TestElement of variable element does not match with type org.apache.jmeter.config.Arguments of variable args |
2 | Type org.apache.jmeter.testelement.TestElement of variable element does not match with type org.apache.jmeter.config.Arguments of variable args |
3 | Type org.apache.jmeter.testelement.TestElement of variable element does not match with type org.apache.jmeter.config.Arguments of variable args |