File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/protocol/http/util/WSDLHelper.java | File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/protocol/http/util/WSDLHelper.java | |||
Method name: Object[] getOperations()
|
Method name: Object[] getSOAPBindings()
|
|||
Number of AST nodes: 6 | Number of AST nodes: 6 | |||
1 | NodeList opnodes = one.getElementsByTagName("operation");↵ | 1 | NodeList bindings = WSDLDOC.getElementsByTagName("binding");↵ | |
2 | String soapOp = "soap:operation";↵ | 2 | String soapBind = "soap:binding";↵ | |
3 | if (opnodes.getLength() == 0) {↵ | 3 | if (bindings.getLength() == 0) {↵ | |
4 | opnodes = one.getElementsByTagName("wsdl:operation");↵ | 4 | bindings = WSDLDOC.getElementsByTagName("wsdl:binding");↵ | |
5 | }↵ | 5 | }↵ | |
6 | if (one.getElementsByTagName(soapOp).getLength() == 0) {↵ | 6 | if (WSDLDOC.getElementsByTagName(soapBind).getLength() == 0) {↵ | |
7 | soapOp = "wsdlsoap:operation";↵ | 7 | soapBind = "wsdlsoap:binding";↵ | |
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.5 |
Clones location | Clones are declared in the same class |
Number of node comparisons | 18 |
Number of mapped statements | 5 |
Number of unmapped statements in the first code fragment | 1 |
Number of unmapped statements in the second code fragment | 1 |
Time elapsed for statement mapping (ms) | 2.7 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
5 | NodeList opnodes = one.getElementsByTagName("operation"); |
| 2 | NodeList bindings = WSDLDOC.getElementsByTagName("binding"); | ||||||||||||||||||||
| 3 | String soapBind = "soap:binding"; | ||||||||||||||||||||||
6 | String soapOp = "soap:operation"; |
| | |||||||||||||||||||||
7 | if (opnodes.getLength() == 0) |
| 4 | if (bindings.getLength() == 0) | ||||||||||||||||||||
8 | opnodes = one.getElementsByTagName("wsdl:operation"); |
| 5 | bindings = WSDLDOC.getElementsByTagName("wsdl:binding"); | ||||||||||||||||||||
9 | if (one.getElementsByTagName(soapOp).getLength() == 0) |
| 6 | if (WSDLDOC.getElementsByTagName(soapBind).getLength() == 0) | ||||||||||||||||||||
10 | soapOp = "wsdlsoap:operation"; |
| 7 | soapBind = "wsdlsoap:binding"; |
Row | Violation |
---|---|
1 | Expression one cannot be unified with expression WSDLDOC , because common superclass org.w3c.dom.Node does not declare member(s) public abstract org.w3c.dom.NodeList getElementsByTagName(java.lang.String) |
2 | Unmatched statement String soapOp="soap:operation"; cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted |
3 | Expression one cannot be unified with expression WSDLDOC , because common superclass org.w3c.dom.Node does not declare member(s) public abstract org.w3c.dom.NodeList getElementsByTagName(java.lang.String) |
4 | Expression one cannot be unified with expression WSDLDOC , because common superclass org.w3c.dom.Node does not declare member(s) public abstract org.w3c.dom.NodeList getElementsByTagName(java.lang.String) |
5 | Clone fragment #1 returns variables opnodes, soapOp , while Clone fragment #2 returns variables soapBind, bindings |