sampler.setProtocol(HTTPS);
if (log.isDebugEnabled()) {
log.debug("Proxy: setting protocol to https");
}
propertyMap.remove(name);
if (log.isDebugEnabled()) {
log.debug("Unset " + name);
}
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/protocol/http/proxy/HttpRequestHdr.java
|
|
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/testbeans/gui/GenericTestBeanCustomizer.java
|
Method name: void populateSampler(Map, Map)
|
|
Method name: void saveGuiFields()
|
Number of AST nodes: 3
|
|
Number of AST nodes: 3
|
|
1 | sampler.setProtocol(HTTPS);↵ | | |
|
2 | ↵ | | 1 | propertyMap.remove(name);↵
|
3 | if (log.isDebugEnabled()) {↵ | | 2 | if (log.isDebugEnabled()) {↵
|
4 | log.debug("Proxy: setting protocol to https");↵ | | 3 | log.debug("↵
|
5 | ↵ | | 4 | Unset " + name);↵
|
6 | } | | 5 | }
|
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.2 |
Clones location | Clones are in different classes |
Number of node comparisons | 6 |
-
{Refactorable}
Mapping Summary
Number of mapped statements | 2 |
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 |
| | | 7 | propertyMap.remove(name); |
15 | sampler.setProtocol(HTTPS); | | | |
16 | if (log.isDebugEnabled()) | | 8 | if (log.isDebugEnabled()) |
17 | log.debug("Proxy: setting protocol to https"); | | 9 | log.debug("Unset " + name); |
Precondition Violations (0)
Row |
Violation |