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 | 17 |
Number of mapped statements | 3 |
Number of unmapped statements in the first code fragment | 3 |
Number of unmapped statements in the second code fragment | 3 |
Time elapsed for statement mapping (ms) | 1.1 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2 | NodeList bindings = WSDLDOC.getElementsByTagName("binding"); | |||||||||||||||
5 | NodeList opnodes = one.getElementsByTagName("operation"); |
| | ||||||||||||||
6 | String soapOp = "soap:operation"; |
| 3 | String soapBind = "soap:binding"; | |||||||||||||
7 | if (opnodes.getLength() == 0) |
| 6 | if (WSDLDOC.getElementsByTagName(soapBind).getLength() == 0) | |||||||||||||
| 7 | soapBind = "wsdlsoap:binding"; | |||||||||||||||
8 | opnodes = one.getElementsByTagName("wsdl:operation"); |
| | ||||||||||||||
9 | if (one.getElementsByTagName(soapOp).getLength() == 0) |
| 4 | if (bindings.getLength() == 0) | |||||||||||||
|
| 5 | bindings = WSDLDOC.getElementsByTagName("wsdl:binding"); | ||||||||||||||
10 | soapOp = "wsdlsoap:operation"; |
| |
Row | Violation |
---|---|
1 | Unmatched statement NodeList opnodes=one.getElementsByTagName("operation"); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted |
2 | Expression WSDLDOC.getElementsByTagName(soapBind) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
3 | Unmatched statement opnodes=one.getElementsByTagName("wsdl:operation"); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted |
4 | Expression one.getElementsByTagName(soapOp) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
5 | Unmatched statement bindings=WSDLDOC.getElementsByTagName("wsdl:binding"); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted |
6 | Unmatched statement soapOp="wsdlsoap:operation"; cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted |