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: 4 | Number of AST nodes: 4 | |||
1 | if (myClass.isInstance(args)) {↵ | 1 | if (myClass.isInstance(element)) {↵ | |
2 | if (ascending) {↵ | 2 | if (ascending) {↵ | |
3 | elements.addFirst(args);↵ | 3 | elements.addFirst(element);↵ | |
4 | } else {↵ | 4 | } else {↵ | |
5 | elements.add(args);↵ | 5 | elements.add(element);↵ | |
6 | }↵ | 6 | }↵ | |
7 | } | 7 | } | |
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.4 |
Clones location | Clones are in the same method |
Number of node comparisons | 13 |
Number of mapped statements | 4 |
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) | 5.0 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
26 | if (myClass.isInstance(args)) |
| 8 | if (myClass.isInstance(element)) | ||||||||||||||
27 | if (ascending) | 9 | if (ascending) | |||||||||||||||
28 | elements.addFirst(args); |
| 10 | elements.addFirst(element); | ||||||||||||||
else | else | |||||||||||||||||
29 | elements.add(args); |
| 11 | elements.add(element); |
Row | Violation |
---|---|
1 | Expression args cannot be unified with expression element , because common superclass type org.apache.jmeter.testelement.TestElement cannot be passed as an argument to public native boolean isInstance(java.lang.Object) |
2 | Expression args cannot be unified with expression element , because common superclass type org.apache.jmeter.testelement.TestElement cannot be passed as an argument to public void addFirst(java.lang.Object) |
3 | Expression args cannot be unified with expression element , because common superclass type org.apache.jmeter.testelement.TestElement cannot be passed as an argument to public boolean add(java.lang.Object) |