String[] wsdlData = browseWSDL(wsdlText);
if (wsdlData != null) {
wsdlMethods.setValues(wsdlData);
wsdlMethods.repaint();
}
if (null != sslmgr){
sslmgr.setContext(conn); // N.B. must be done after opening connection
}
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/protocol/http/control/gui/WebServiceSamplerGui.java
|
|
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/protocol/http/sampler/HTTPSampler.java
|
Method name: void actionPerformed(ActionEvent)
|
|
Method name: HttpURLConnection setupConnection(URL, String, HTTPSampleResult)
|
Number of AST nodes: 4
|
|
Number of AST nodes: 2
|
|
1 | String[] wsdlData = browseWSDL(wsdlText);↵ | | |
|
2 | if (wsdlData != null) {↵ | | |
|
3 | wsdlMethods.setValues(wsdlData);↵ | | |
|
4 | wsdlMethods.repaint();↵ | | 1 | if (null != sslmgr){↵
|
| | | 2 | sslmgr.setContext(conn); // N.B. must be done after opening connection↵
|
5 | } | | 3 | }
|
See real code fragment |
|
See real code fragment |
Summary
Number of common nesting structure subtrees | 1 |
Number of refactorable cases | 1 |
Number of non-refactorable cases | 0 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.1 |
Clones location | Clones are in different classes |
Number of node comparisons | 7 |
-
{Refactorable}
Mapping Summary
Number of mapped statements | 1 |
Number of unmapped statements in the first code fragment | 3 |
Number of unmapped statements in the second code fragment | 1 |
Time elapsed for statement mapping (ms) | 0.6 |
Clone type | Type 3 |
Mapped Statements
ID |
Statement |
|
ID |
Statement |
14 | String[] wsdlData = browseWSDL(wsdlText); | | | |
15 | if (wsdlData != null) | | 9 | if (null != sslmgr) |
| | | 10 | |
16 | wsdlMethods.setValues(wsdlData); | | | |
17 | | | | |
Precondition Violations (0)
Row |
Violation |