if (useProxy) {
if (log.isDebugEnabled()){
log.debug("Setting proxy: "+PROXY_HOST+":"+PROXY_PORT);
}
hc.setProxy(PROXY_HOST, PROXY_PORT);
}
if (s != null) {
if (log.isDebugEnabled()) {
log.debug("group " + g + " - " + match.group(g));
}
urls.addURL(s, baseUrl);
}
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/protocol/http/sampler/HTTPSampler2.java
|
|
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/protocol/http/parser/RegexpHTMLParser.java
|
Method name: HttpClient setupConnection(URL, HttpMethodBase, HTTPSampleResult)
|
|
Method name: Iterator getEmbeddedResourceURLs(byte[], URL, URLCollection)
|
Number of AST nodes: 4
|
|
Number of AST nodes: 4
|
|
1 | if (useProxy) {↵ | | 1 | if (↵
|
2 | ↵ | | 2 | s != null) {↵
|
3 | if (log.isDebugEnabled()){↵ | | 3 | if (log.isDebugEnabled()) {↵
|
4 | log.debug("Setting proxy: "+PROXY_HOST+":"+PROXY_PORT);↵ | | |
|
5 | }↵ | | |
|
6 | hc.setProxy(PROXY_HOST, PROXY_PORT);↵ | | |
|
7 | ↵ | | 4 | log.debug("group " + g + " - " + match.group(g));↵
|
| | | 5 | }↵
|
| | | 6 | urls.addURL(s, baseUrl);↵
|
8 | } | | 7 | }
|
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 | 5 |
-
{Refactorable}
Mapping Summary
Number of mapped statements | 1 |
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) | 0.5 |
Clone type | Type 2 |
Mapped Statements
ID |
Statement |
|
ID |
Statement |
17 | if (log.isDebugEnabled()) | | 20 | if (log.isDebugEnabled()) |
18 | log.debug("Setting proxy: " + PROXY_HOST + ":" + PROXY_PORT); | | | |
| | | 21 | log.debug("group " + g + " - " + match.group(g)); |
Precondition Violations (0)
Row |
Violation |